尝试将 APK 安装到模拟器时失败 [install_parse_failed_no_certificates] [英] Failure [install_parse_failed_no_certificates] when attempting to install APK to the emulator

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

问题描述

我从互联网上下载了 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.

我尝试在命令提示符下进行操作

I tried following in command prompt

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?

推荐答案

这个 网站帮助我正确签署未签名的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 错误.所以总的来说,使用以下程序

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 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.

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

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