[英]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.