• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

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

Explorer ,
Dec 19, 2014 Dec 19, 2014

Copy link to clipboard

Copied

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-buil...

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?

TOPICS
Development

Views

455

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines