Skip to main content
Participant
June 11, 2015
Question

NativeMap ANE from distriqt problem (AIR for Android)

  • June 11, 2015
  • 3 replies
  • 1488 views

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 has been closed for replies.

3 replies

Known Participant
November 17, 2016

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

marchbold
Inspiring
June 16, 2015

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

air native extensions // https://airnativeextensions.com
Nimisha1
Participating Frequently
June 12, 2015

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

Participant
June 14, 2015

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