2 Replies Latest reply on Apr 4, 2017 6:48 AM by dimitarm14994181

    ANE - Using new created Extension Error

    dimitarm14994181 Level 1

      Hi ,

      I have created an extension according to the instructions from,

      Developing and using Adobe AIR native extensions for Android devices | Adobe Developer Connection

       

      but I have receive an error when trying to export the test app , which using this extension .

      I have tried adding this to the android gridle, but doesn't help

      compileOptions {

        sourceCompatibility JavaVersion.VERSION_1_6
         targetCompatibility JavaVersion.VERSION_1_6
      }

       

       

       

      Error occurred while packaging the application:

      dx tool failed:

      UNEXPECTED TOP-LEVEL EXCEPTION:

      com.android.dx.cf.iface.ParseException: bad class file magic (cafebabe) or version (0034.0000)

        at com.android.dx.cf.direct.DirectClassFile.parse0(DirectClassFile.java:472)

        at com.android.dx.cf.direct.DirectClassFile.parse(DirectClassFile.java:406)

      at com.android.dx.cf.direct.DirectClassFile.parseToInterfacesIfNecessary(DirectClassFile.jav a:388)

        at com.android.dx.cf.direct.DirectClassFile.getMagic(DirectClassFile.java:251)

        at com.android.dx.command.dexer.Main.processClass(Main.java:709)

        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)

      ...while parsing android/annotation/SuppressLint.class