NoClassdefFoundError for third-party files when creating the Adobe Native extension

I am creating an Adobe Native extension (ANE) that has JAR-dependent third-party relationships. I am sure that third-party class files are extracted and packaged within ANE JAR (as explained in this answer)

But when I create the latest android APK for my application, these classes are missing in classes.dex. It seems that ADT is somehow eliminating them. It is worth noting that the third-party JAR that I use is built using Java 1.7, and I use Java 1.6.

+3
source share
1 answer

Not sure if this is the most perfect thing, but I solved it by replacing dx.jar in $ FLEX_AIR_SDK_HOME / lib / android / bin / dx.jar with the one in Android build tools version 20. This dx tool did not separate classes from java major version 51.

+6
source

All Articles