使用@Background注释的库项目给出多个dex文件错误

时间:2013-10-02 06:15:56

标签: android android-annotations

我有两个项目项目A是一个图书馆项目,项目B是主要项目,并且依赖于项目A.

当我在两个项目中使用@ Background注释时,我遇到了以下错误。

  Unable to execute dex: Multiple dex files define Lorg/androidannotations/api/BackgroundExecutor$Task;

我认为原因是两个项目都生成org.androidannotations.api.BackgroundExecutor类。

任何解决方案??

(我正在使用Android Annotations V 3.0快照)

1 个答案:

答案 0 :(得分:0)

此问题在新的Android注释版本3.0.1中得到解决 现在我们可以在库项目中使用@Background注释,没有任何问题。