编译无问题,当尝试运行时出错。

BeanSoft 2015-04-09

解决方法是通用的,参考:http://stackoverflow.com/questions/7870265/unable-to-execute-dex-multiple-dex-files-define-lcom-myapp-rarray

I had the same problem, quite weird because it was happening only when using Eclipse (but it was OK with Ant). This is how I fixed it:

Right click on the Project Name

Select Build Path -> Configure Build Path

In Java Build Path, go to the tab Order and Export

Uncheck your .jar library

Only sometimes: In Order and Export tab I did not have any jar library there, so I have unchecked Android Private Libraries item. Now my project is running.

转载请注明:WebLogic Android 博客 » 解决androidannotations项目在ADT中的错误:Unable to execute dex: Multiple dex files define Lorg/androidannotations/annotations/AfterExtras;