我正在嘗試將我的.apk文件安裝到模擬器,但它給了我錯誤。將.apk安裝到android模擬器時出錯
[email protected]:~/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文件
[email protected]:~/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)
[email protected]:~/subh/androidapp/HelloAndroid/bin$
但我仍然有證書的問題。
您是否有證書開頭? – njzk2 2012-03-09 15:31:36