Question

I have two projects Project A is a library project, Project B is the main project and has an dependency on Project A.

I'm getting following error when I use @ Background annotation in both projects.

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

I think the reason is both projects generate org.androidannotations.api.BackgroundExecutorclass.

Any solution??

(I'm using Android Annotations V 3.0 Snapshot)

Était-ce utile?

La solution

This issue is addressed in the new android annotation release 3.0.1 Now we can use @Background annotation in library projects without any issue.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top