简体   繁体   中英

AS3 Air Native Extension com.distriq.Core conflits with other ANEs

I'm facing the issue with the com.distriq.Core ANE, it's conflicting with my other ANEs (I know it when I remove it from app packaging, but after include this ANE, Flash Builder was failed to build).

Here is the error message:

Error occurred while packaging the application:

dx tool failed:
UNEXPECTED TOP-LEVEL EXCEPTION:
java.lang.IllegalArgumentException: already added: Lcom/adobe/air/ActivityResultCallback;
    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)
1 error; aborting

So I'm asking for an advise, what should I do now?

Much appreciated !

The support team from Distriqt already provided me an new ANE called "com.distriq.Core.noair.com" with the conflicted JAR file is removed.

https://github.com/distriqt/ANE-Core/tree/master/lib

In case someone want to know which ANE it was conflicting with, it's "overideAir.ane" from MyFlashLab team.

Big thumbs up for the amazing support from Distriqt!

Cheers!

冲突将与其他提供商的ANE发生,如果您与我们的支持部门联系,我们将与您一起删除与您的其他ANE冲突的类。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM