I have made a signed apk of an android project. Whenever my client try to run it on the emulator, he faces the following error message:
D:\Android\android-sdk-
windows\tools>adb install -r abc.apk
500 KB/s (6940708 bytes in 13.534s)
pkg: /data/local/tmp/abc.apk
Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES]
What is the resolution?
In my case it was because I signed it on a machine running JDK 7. Downgrading to JDK 6 fixed the problem. Thanks java.lang.SecurityException when install apk for the suggestion!
As mentioned by steelbytes, the error INSTALL_PARSE_FAILED_NO_CERTIFICATES
suggests that the APK isn't signed like you think it is.
Run this command to verify which certificate was used to sign the APK:
jarsigner -verify -verbose -certs abc.apk
For each entry in the APK, you should see something like this:
sm 152412 Wed Oct 14 14:16:52 CEST 2009 classes.dex X.509, CN=Meebo, OU=Meebo, O=Meebo, L=Mountain View, ST=California, C=US [certificate is valid from 28/10/08 06:49 to 13/08/82 07:49]
Otherwise, if the APK isn't signed, you'll get the message jar is unsigned
.
try below code it's worked for me.
Below line run when your jdk version is 6 for singing the apk
H:\Keytool>"C:\Program Files\Java\jdk1.6.0_09\bin\jarsigner.exe" -verbose -keystore donate.keystore "H:\Keytool\yourapkName.apk.apk" donate.keystore
Below line run when your jdk version is 7 for singing the apk
H:\Keytool>"C:\Program Files\Java\jdk1.7.0_21\bin\jarsigner.exe" -verbose -keyst
ore denote.keyStore "H:\Keytool\yourapkName.apk" denote.keyStore -digestalg SHA1 -sigalg MD5withRSA
正如Dan指出的,检查您是否正在运行JDK 7.更多信息: http : //code.google.com/p/android/issues/detail?id = 19567
You can run the Command:
C:\Program Files\Android\android-sdk\platform-tools>adb logcat
It will give you a more detail on which exact file is not signed:
Package has no certificates at entry assets/META-INF/AIR/application.xml; ignoring!
您可以检查客户端是否未在模拟器中禁用未签名应用程序的安装。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.