If I launch my app from android studio on the terminal with build variant debug, the app is installed correctly. If instead imposed as build variant release, I get the following error: 09/06 16:27:07: Launching 'app' on samsung SM-G973F. Installation did not succeed. The application could not be installed: INSTALL_PARSE_FAILED_NO_CERTIFICATES APK signature verification failed. Retry
-
1here the answer: https://stackoverflow.com/questions/33802401/how-to-debug-the-android-app-in-release-mode-using-android-studio – Italo Piscopiello Sep 06 '19 at 16:21
-
have you found a solution to this problem? – Andrey Solera Dec 17 '19 at 16:24
-
Thanks for linking to the answer! It worked – SPM May 29 '20 at 19:17
3 Answers
That error is show because you should sign your Release build apk. You can read this article about it https://developer.android.com/studio/publish/app-signing

- 637
- 4
- 14
-
2I have already signed my app, I have also uploaded it to the play store and it works correctly. The problem is that in android studio I can't launch the release version on the terminal. – Italo Piscopiello Sep 06 '19 at 15:00
To fix this problem, simply delete the debug.keystore file stored in one of the following locations:
~/.android/ on OS X and Linux
C:\Documents and Settings\user.android\ on Windows XP
C:\Users\user.android\ on Windows Vista and Windows 7, 8, and 10
The next time you build and run a debug version of your app, Android Studio regenerates a new keystore and debug key.

- 2,917
- 23
- 46
- 68

- 460
- 5
- 12
I know it's too late but the answer may help others
in my case, the problem was in app build.gradle
the compileSdkVersion,minSdkVersion,targetSdkVersion were equal to "R" so I changed it to
compileSdkVersion 29
minSdkVersion 16
targetSdkVersion 29
make sure that the minsdkversion should be less than your phone apiversion
and then I could install and run the project on my phone from android studio

- 527
- 1
- 6
- 13