.apk fails even with Sun JDK (java.lang.NoClassDefFoundError: com.android.jarutils.DebugKeyProvider)

I had an interesting problem signing my Android app, regardless of whether I use the debug key. Regardless of the JDK that I installed for /usr/bin/{java,keytool,jarsigner} (OpenJDK or Sun JDK), it will always give the following result after compilation:

  -package-debug-sign:
 [apkbuilder] Creating RemoteNotify-debug-unaligned.apk and signing it with a debug key ...

 BUILD FAILED
 /home/ianweller/AndroidSDK/platforms/android-7/templates/android_rules.xml:281: The following error occurred while executing this line:
 /home/ianweller/AndroidSDK/platforms/android-7/templates/android_rules.xml:152: java.lang.NoClassDefFoundError: com.android.jarutils.DebugKeyProvider

The application was built and signed very well by Eclipse with the ADT plugin (even without installing Sun JDK). I'm on Fedora 12.

I want to get my code from Eclipse and move it to the git repository, but the inability to create it from ant will not allow this.

+4
source share
1 answer

Not sure if this is your problem, but watch out for odd characters, some fields may not have spaces, commas, periods, etc.

0
source

Source: https://habr.com/ru/post/1309161/


All Articles