Android的工作室:禁用"外部构建"显示错误输出创建重复类错误 [英] Android Studio: disabling "External build" to display error output create duplicate class errors
问题描述
我开始从我的Eclipse移植到Android的工作室,并开始与工作室新项目的比赛。
I am starting my migration from Eclipse to Android Studio, and start playing with new projects on Studio.
我的测试项目是工作的罚款,直到我得到了一些错误的消息。
My test project was working fine till I got some errors messages.
我不得不做一些操作( http://stackoverflow.com/a/16876993/327402 )来启用错误输出显示,并且发现我固定的问题。
I had to do some manipulation (http://stackoverflow.com/a/16876993/327402) to enable the error output to display, and found the issue that I fixed.
不幸的是,这种解决办法(?凭啥我已做出这样的事情,看看我的错误)之后,我发现有一个错误信息,我无法修复:
Unfortunately, after this "workaround" (Why the hell have I to make such things to see my errors?), I found that there was an error message that I cannot fix:
error: duplicate class: com.mypackage.name.BuildConfig
error: duplicate class: com.mypackage.name.R
我也注意到,我不是有这个问题(见SO回答我刚才的链接评论)是唯一一个
I also noticed that I am not the only one to have this issue (see the comment in the SO answer I linked above)
第一次,我是能够通过启用外部构建再次修复它,但再次发生,因为我需要看到错误输出和一切,现在破了,我找不到什么发生。
First time, I was able to fix it by enabling "External build" again, but that happened again, because I needed to see the error output and everything is now broken, and I cannot find what happen.
通过Eclipse中,R档很容易发现,在根文件夹,但与Android Studio中,有太多的文件,我有点失去了。
With Eclipse, the R file was easy to find, in the gen folder, but with Android Studio, there are too many files, and I am a little bit lost.
任何想法/建议?
推荐答案
所以,只是为了让你知道...
So, just to let you know...
几分钟后,谷歌发布了一个更新到Android工作室(0.1.5)
见链接: https://plus.google.com/+AndroidDevelopers/posts/Y9vhvGaHCbh
A few minutes after I posted my question, Google released an update to Android Studio (0.1.5) See link: https://plus.google.com/+AndroidDevelopers/posts/Y9vhvGaHCbh
Tor的诺尔比耶亲切地回答我的问题在这个社区,而我在这里分享
Tor Norbye kindly answered my question in this community, and I am sharing here
所以我在OP引用的解决方法是不必需的。
So the workaround I quoted in the OP is no more mandatory.
在升级后再次对外打造的Android启用Sudio让我看到了真正的错误(图书馆和一些进口摇篮,我固定的)
Enabling again External build after upgrading Android Sudio let me see the real errors ( a library and some Gradle import that I fixed)
所以,我认为Android的工作室升级为最佳答案...
So, I consider the Android Studio upgrade as the best answer to this question...
这篇关于Android的工作室:禁用"外部构建"显示错误输出创建重复类错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!