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

后端 未结 30 2122
迷失自我
迷失自我 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:04

    This problem was happening me, I had an external .jar in my libs folder called gson-2.2.2.jar but for some reason there were two of them, gson-2.2.2.jar and gson-2.2.2.jar(1), I simply deleted the latter and my project built fine again.

    0 讨论(0)
  • 2020-11-22 01:04

    I ran into this when I upgraded from adt 14 to 15 and to get it to work I ended up just deleting the .eclipse folder (along with my settings) and re-installing the adt 15.

    0 讨论(0)
  • 2020-11-22 01:05

    My problem was resolved after cleaning up some directories and files left over from the previous versions of the tools. ADT Rev 14 changes where binaries are stored. I deleted the entire bin directory, restarted Eclipse and cleaned the build and forced a rebuild. That seemed to do the trick initially but the problem came back after the next run.

    I finally discovered that my bin directory was included in the project build path. I excluded bin from the build path and repeated the steps above. This resolved my problem.

    0 讨论(0)
  • 2020-11-22 01:06

    I was getting this error after adding the facebooksdk.jar to a project that already had dependencies on the android-support-v4.jar. Since the facebooksdk.jar already includes its own android-support-v4.jar there were conflicts. Removing the earlier android-support-v4.jar from the projects Properties / Java Build Path / Libraries resolved the issue for me.

    0 讨论(0)
  • 2020-11-22 01:07

    For me, I just right click on project -> Build path -> configure build path -> Libraries -> remove dependency

    after it works.

    0 讨论(0)
  • 2020-11-22 01:08

    You have probably installed r14, this error may have been caused due to the platform tools update, you have to re-install your sdk

    0 讨论(0)
提交回复
热议问题