失败[install_parse_failed_no_certificates当试图安装APK到仿真器 [英] Failure [install_parse_failed_no_certificates] when attempting to install APK to the emulator

查看:1274
本文介绍了失败[install_parse_failed_no_certificates当试图安装APK到仿真器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我下载Myfiles.apk从互联网和我试图把它安装到我的Andr​​oid模拟器。

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?

推荐答案

这<一href="http://vardhan-justlikethat.blogspot.com/2012/05/android-solution-install-parse-failed.html">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.

做进一步的眼光来看待这个 无法登录抛出:Zip​​Exception 如果您遇到任何抛出:Zip​​Exception 错误。所以,总体来说,请使用下列步骤

Further do look upon this unable to sign zipexception if you encounter with any zipexception error . So overall,use following procedure

  1. 的keytool -genkey -v -keystore debug.keystore -alias安卓-keyalg RSA -keysize 2048 -validity 20000
  2. 的jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore我释放,key.keystore yourapkalign.apk ALIAS_NAME
  3. zipalign -v 4 yourapk.apk yourapkalign.apk
  1. keytool -genkey -v -keystore debug.keystore -alias android -keyalg RSA -keysize 2048 -validity 20000
  2. jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.keystore yourapkalign.apk alias_name
  3. zipalign -v 4 yourapk.apk yourapkalign.apk

现在,您可以成功安装apk文件。

Now,you can successfully install the apk file.

这篇关于失败[install_parse_failed_no_certificates当试图安装APK到仿真器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆