I built my own android libs in aar/apklib format and I am now looking for a way to use them in the final apk project within netbeans without breaking the maven build. Problem is: I need to include the produced lib jars in order to make netbeans happy about finding imports for the libs, however that breaks the maven build because dex finds duplicate build configs because the libs have been specified twice in pom.xml (once as apklib/aar and once as jar).
Asked
Active
Viewed 575 times
1 Answers
1
Setting the .jar dependency to provided scope fixes the issue.

user1050755
- 11,218
- 4
- 45
- 56
-
Finally! This solution works for third-party `aar` dependencies with android-maven-plugin as well. – Dmitry Zaytsev Jun 29 '14 at 21:48
-
Can you please explain "Setting the .jar dependency to provided scope" in more detail? – carl Jan 10 '15 at 10:22
-
pom.xml -> dependency section ->
provided – user1050755 Jan 13 '15 at 12:03