将.apk安装到android emulator时出错
我正在尝试将.apk文件安装到emulator,但它给了我错误将.apk安装到android emulator时出错,android,android-emulator,Android,Android Emulator,我正在尝试将.apk文件安装到emulator,但它给了我错误 subh@subh:~/subh/droidbox/android-sdk-linux/platform-tools$ ./adb -s emulator-5554 install /home/subh/subh/androidapp/HelloAndroid/bin/HelloAndroid-release-unsigned.apk 11 KB/s (2919 bytes in 0.245s) pkg: /data/local/
subh@subh:~/subh/droidbox/android-sdk-linux/platform-tools$ ./adb -s emulator-5554 install /home/subh/subh/androidapp/HelloAndroid/bin/HelloAndroid-release-unsigned.apk
11 KB/s (2919 bytes in 0.245s)
pkg: /data/local/tmp/HelloAndroid-release-unsigned.apk
Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES]
然后我用jarsigner在.apk上签名
subh@subh:~/subh/androidapp/HelloAndroid/bin$ jarsigner -verify -verbose -certs HelloAndroid-release-unsigned.apk
s = signature was verified
m = entry is listed in manifest
k = at least one certificate was found in keystore
i = at least one certificate was found in identity scope
no manifest.
jar is unsigned. (signatures missing or not parsable)
subh@subh:~/subh/androidapp/HelloAndroid/bin$
但是我仍然有证书问题。第二个命令似乎给出了一个错误。你能试着在Eclipse中清理你的项目并创建一个新的APK吗?我得到了答案。在我们想要发布它之前,APK需要被签署。 对于ant,我们有两种模式调试和发布
# ant debug
这将自动生成密钥对,并为我们的.apk签名以进行调试
#ant release
这需要在build.xml中指定密钥库。
欲知详情
您有证书吗?