简体   繁体   English

发布 INSTALL_PARSE_FAILED_NO_CERTIFICATES

[英]Release INSTALL_PARSE_FAILED_NO_CERTIFICATES

If I launch my app from android studio on the terminal with build variant debug, the app is installed correctly.如果我在终端上使用构建变体调试从 android studio 启动我的应用程序,则该应用程序已正确安装。 If instead imposed as build variant release, I get the following error: 09/06 16:27:07: Launching 'app' on samsung SM-G973F.如果改为作为构建变体版本强加,我会收到以下错误:09/06 16:27:07:在三星 SM-G973F 上启动“应用程序”。 Installation did not succeed.安装没有成功。 The application could not be installed: INSTALL_PARSE_FAILED_NO_CERTIFICATES APK signature verification failed.无法安装应用程序:INSTALL_PARSE_FAILED_NO_CERTIFICATES APK 签名验证失败。 Retry重试

That error is show because you should sign your Release build apk.显示该错误是因为您应该签署您的发布版本 apk。 You can read this article about it https://developer.android.com/studio/publish/app-signing你可以阅读这篇关于它的文章https://developer.android.com/studio/publish/app-signing

To fix this problem, simply delete the debug.keystore file stored in one of the following locations:要解决此问题,只需删除存储在以下位置之一的debug.keystore文件:

~/.android/ on OS X and Linux ~/.android/ 在 OS X 和 Linux 上
C:\\Documents and Settings\\user.android\\ on Windows XP C:\\Documents and Settings\\user.android\\ 在 Windows XP
C:\\Users\\user.android\\ on Windows Vista and Windows 7, 8, and 10 C:\\Users\\user.android\\ 在 Windows Vista 和 Windows 7、8 和 10 上

The next time you build and run a debug version of your app, Android Studio regenerates a new keystore and debug key.下次构建和运行应用的调试版本时,Android Studio 会重新生成新的密钥库和调试密钥。

I know it's too late but the answer may help others我知道为时已晚,但答案可能对其他人有所帮助

in my case, the problem was in app build.gradle就我而言,问题出在 app build.gradle

the compileSdkVersion,minSdkVersion,targetSdkVersion were equal to "R" so I changed it to compileSdkVersion,minSdkVersion,targetSdkVersion 等于“R”所以我把它改成

compileSdkVersion 29

minSdkVersion 16
targetSdkVersion 29

make sure that the minsdkversion should be less than your phone apiversion确保 minsdkversion 应小于您的手机 apiversion

and then I could install and run the project on my phone from android studio然后我可以从 android studio 在我的手机上安装和运行该项目

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在Eclipse中构建项目后INSTALL_PARSE_FAILED_NO_CERTIFICATES - INSTALL_PARSE_FAILED_NO_CERTIFICATES after building project in Eclipse 来自adb install的INSTALL_PARSE_FAILED_NO_CERTIFICATES; 使用Java 6,Android 5.0.2 - INSTALL_PARSE_FAILED_NO_CERTIFICATES from adb install; using Java 6, Android 5.0.2 ADT v22调试密钥和INSTALL_PARSE_FAILED_NO_CERTIFICATES - ADT v22 Debug Key and INSTALL_PARSE_FAILED_NO_CERTIFICATES Java严重更新后,在OS X Mountain Lion上安装错误:INSTALL_PARSE_FAILED_NO_CERTIFICATES - Installation error: INSTALL_PARSE_FAILED_NO_CERTIFICATES on OS X Mountain Lion after Java Critical Update Android Studio Wear Os 应用程序无法安装 INSTALL_PARSE_FAILED_NO_CERTIFICATES - Android Studio Wear Os application can't be installed INSTALL_PARSE_FAILED_NO_CERTIFICATES 即使使用jarsigner签名后,INSTALL_PARSE_FAILED_NO_CERTIFICATES也无法安装修改后的APK文件(无效的SHA1签名) - INSTALL_PARSE_FAILED_NO_CERTIFICATES failure installing modified apk file (invalid SHA1 signature), even after signing with jarsigner 安装失败,并显示消息INSTALL_PARSE_FAILED_MANIFEST_MALFORMED - Installation failed with message INSTALL_PARSE_FAILED_MANIFEST_MALFORMED 应用程序安装失败错误[INSTALL_PARSE_FAILED_MANIFEST_MALFORMED] - Application Installation failed error [INSTALL_PARSE_FAILED_MANIFEST_MALFORMED] 由于安装失败:'INSTALL_PARSE_FAILED_MANIFEST_MALFORMED:在 installPackageLI 期间解析失败: - Installation failed due to: 'INSTALL_PARSE_FAILED_MANIFEST_MALFORMED: Failed parse during installPackageLI: 如何将自己的证书安装到系统证书存储中? - How to install own certificates into system certificates storage?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM