Unable to execute dex: Multiple dex files define Lcom/myapp/R$array;

后端 未结 30 2527
迷失自我
迷失自我 2020-11-22 00:31

Since updating to ADT 14 I can no longer build my project. It was building fine prior to updating.

The error:

[2011-10-23 16:23:29 - De         


        
30条回答
  •  独厮守ぢ
    2020-11-22 01:11

    As others have mentioned, this occurs when you have multiple copies of the same class in your build path - including bin/ in your classpath is one way to guarantee this problem.

    For me, this occurred when I had added android-support-v4.jar to my libs/ folder, and somehow eclipse added a second copy to bin/classes/android-support-v4.jar.

    Deleting the extra copy in bin/classes solved the problem - unsure why Eclipse made a copy there.

    You can test for this with

    grep -r YourOffendingClassName YourApp | grep jar

提交回复
热议问题