问题描述
我下载Myfiles.apk从互联网和我试图把它安装到我的Android模拟器。
I downloaded Myfiles.apk from the internet and I'm trying to install it to my Android emulator.
在通过命令提示符安装Myfiles.apk文件,我得到这个错误。
While installing Myfiles.apk file through the command prompt, I'm getting this error.
我试着按照命令提示符
C:\android-sdk\tools> adb -s emulator-5554 install C:\Users\Me\Desktop\MyFiles.apk
我如何正确地安装这个APK到模拟器?
How do I install this APK to the emulator correctly?
推荐答案
这site 帮了我很多正确签署无符号的apk。但是,在过去的过程中,即在的jarsigner
,以下命令需要使用
This site helped me a lot to properly sign the unsigned apk. But,for the last process i.e. for jarsigner
,following command need to be used
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.keystore my_application.apk alias_name.
做进一步的眼光来看待这个 无法登录抛出:ZipException
如果您遇到任何抛出:ZipException
错误。所以,总体来说,请使用下列步骤
Further do look upon this unable to sign zipexception
if you encounter with any zipexception
error . So overall,use following procedure
-
的keytool -genkey -v -keystore debug.keystore -alias安卓-keyalg RSA -keysize 2048 -validity 20000
-
的jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore我释放,key.keystore yourapkalign.apk ALIAS_NAME
-
zipalign -v 4 yourapk.apk yourapkalign.apk
keytool -genkey -v -keystore debug.keystore -alias android -keyalg RSA -keysize 2048 -validity 20000
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.keystore yourapkalign.apk alias_name
zipalign -v 4 yourapk.apk yourapkalign.apk
现在,您可以成功安装apk文件。
Now,you can successfully install the apk file.
这篇关于失败[install_parse_failed_no_certificates当试图安装APK到仿真器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!