.apk signing fails even with Sun JDK (java.lang.NoClassDefFoundError: com.android.jarutils.DebugKeyP

Posted by ianweller on Stack Overflow See other posts from Stack Overflow or by ianweller
Published on 2010-05-07T23:21:09Z Indexed on 2010/05/07 23:28 UTC
Read the original article Hit count: 377

Filed under:
|
|

I'm having an interesting problem signing my Android application, whether or not I'm using a debug key. Regardless of the JDK I have installed to /usr/bin/{java,keytool,jarsigner} (OpenJDK or Sun's JDK) it will always give the following output after compiling successfully:

-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 just fine by Eclipse with the ADT plugin (even without Sun's JDK installed). I'm on Fedora 12.

I'm wanting to get my code out of Eclipse and move it into a git repository, but being unable to build it from ant will not allow this to happen.

© Stack Overflow or respective owner

Related posts about android

Related posts about android-sdk