Quantcast
Channel: Adobe Community : Unanswered Discussions - AIR Development
Viewing all articles
Browse latest Browse all 2010

NoClassdefFoundError on the third-party jar's classes when building APK

$
0
0

I am building a native extension for Android.

 

For the android library, I create a android project and add several third-party jar files to build path.

I extract a jar file from a android project and merge it and third-party jar files into a single jar file.

 

I package ANE using a merged jar file and build a APK.

When I install a APK and launch it, NoClassdefFoundError on the third-party class occurs.

I use Flash Builder 4.6 and set sdk version to the Flex SDK 4.6.0 + AIR SDK 15.0.0.356.

 

I decompile APK and check the classes.dex.

Strangely a certain jar's classes are missing in the classes.dex.

 

 

I tried googling and found a similar case.

The following is the link :

http://stackoverflow.com/questions/24777394/noclassdeffounderror-on-thirdparty-class-files -when-building-adobe-native-extens

 

I try to follow the answer in this link.

001.png

 

Did dx.jar in the AIR SDK really strip out some classes of third-party jar file??


I inquired the java version of the third-party related with NoClassdefFoundError.

Now I am waiting for the reply.

 

Is anybody else know about this?


Viewing all articles
Browse latest Browse all 2010

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>