Skip to main content
Participant
Jun 11, 2015 8:50 PM UTC
Question

NativeMap ANE from distriqt problem (AIR for Android)

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?

This topic is closed to new replies. Start a new post to keep the conversation going.

4 replies

Known Participant
Nov 17, 2016 12:16 PM UTC

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.

error while compiling with com.distriqt.CustomResources.ane · Issue #9 · distriqt/ANE-CustomResources · GitHub

Translate
marchbold
Inspiring
Jun 16, 2015 3:53 AM UTC

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

Translate
air native extensions // https://airnativeextensions.com
Nimisha1
Participating Frequently
Jun 12, 2015 5:14 AM UTC

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

Translate
Participant
Jun 14, 2015 8:07 AM UTC

the problem is in another structure of their extensions, there are no these files in their builds...

Translate