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)

Was it helpful?

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top