Copy link to clipboard
Copied
Hello!
I'm using few distriqt extensions in AIR project, but seems like NativeMaps have some conflict with other ANE(s) or something, here is ADT compiling result:
dx tool failed: UNEXPECTED TOP-LEVEL EXCEPTION: java.lang.IllegalArgumentException: already added: Lcom/distriqt/extension/nativemaps/R$attr; at com.android.dx.dex.file.ClassDefsSection.add(ClassDefsSection.java:122) at com.android.dx.dex.file.DexFile.add(DexFile.java:161) at com.android.dx.command.dexer.Main.processClass(Main.java:737) at com.android.dx.command.dexer.Main.processFileBytes(Main.java:678) at com.android.dx.command.dexer.Main.access$300(Main.java:83) at com.android.dx.command.dexer.Main$1.processFileBytes(Main.java:607) at com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:284) at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:166) at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:144) at com.android.dx.command.dexer.Main.processOne(Main.java:637) at com.android.dx.command.dexer.Main.processAllFiles(Main.java:511) at com.android.dx.command.dexer.Main.runMonoDex(Main.java:281) at com.android.dx.command.dexer.Main.run(Main.java:247) at com.android.dx.command.dexer.Main.main(Main.java:215) at com.android.dx.command.Main.main(Main.java:106) warning: Ignoring InnerClasses attribute for an anonymous inner class...
and after that a lot of errors but seems like this is the reason.
I'm using: Calendar, Notifications, Dialog, PushNotifications, NativeMaps + GooglePlayServices, ApplicationRater, also GoViral (not from distriqt, but it's not the reason of the problem).
Android library updated.
Does anybody can help me?
Copy link to clipboard
Copied
AlexT,
First try to find which set of ANEs is creating this problem and then follow the steps mentioned at blog Multiple ANEs and conflicting resources
Hope that helps!
-Nimisha
Copy link to clipboard
Copied
the problem is in another structure of their extensions, there are no these files in their builds...
Copy link to clipboard
Copied
Hi,
We've made some updates to address conflicting resources on Android. Could you update to the latest ANE's and let me know if you are still having the issue?
Cheers
Michael
Copy link to clipboard
Copied
check jar files inside your ane plugins.
there can be R class that causing the conflict.
also if you use ant to build resources make sure removing R generation process.