I'm using Eclipse Helios with the Android SDK plugin to build apps and
was able to install a simple HelloWorld.apk to the emulator under the
IDE. I'm trying to run the same app, HelloWorld.apk, on the emulator
using the jarisigner.exe and adb.exe but keep receiving the error:
INSTALL_PARSE_FAILED_NO_CERTIFICATES.
I used the Eclipse Android Tools to export an unsigned package to the
file, temp\HelloWorld.unsigned.apk. Using the same key from
debug.keystore, I used the jarsigner to build HelloWorld2.apk as
follows:
jarsigner -verbose -keystore c:\users\jhwong\.android
\debug.keystore
-storepass android -keypass android
-digestalg SHA-1 -sigalg SHA1withRSA
-sigfile CERT -signedjar temp\HelloWorld2.apk
temp\HelloWorld.unsigned.apk androiddebugkey
I received the message that files were added to the META-INF dir and
each package file was signed. I used the zipAlign.exe to build
HelloWorld3.apk.
I ran adb install -r temp\HelloWorld3.apk and received the error
message about no certificates. I ran adb logcat and it stated that a
Security Exception occurred.
"META-INF/CERT.SF has invalid digest for res/layout/main.xml in /
data/app/vmd124415.tmp"
Does anyone know why performing it manually would result in this error
verses using the Eclipse IDE to generate a signed package. Just to
make sure, I was able to use adb.exe to install the Eclipse generated,
HelloWorld.apk.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en