Skip to main content

Android Studio error when running app through emulator

Only a month ago, running an app through the Android Studio emulator was running fine.  Now I'm warmly greeted by

Error
Installation did not succeed.
The application could not be installed: INSTALL_PARSE_FAILED_NO_CERTIFICATES

The complete error is 

Version code 1 has already been used. Try another version code

Uploading a new version of an Android app to Google Play and I'm seeing this error

Version code 1 has already been used. Try another version code.

There are three areas to observe:

Version Code: {whole integer}
Version Name: {String}
Version Name Suffix: {Integer}

Currently, my settings are:

How to handle a lost KeyStore password in Android?

If you have a situation where either you have forgotten a Keystore password or change of developers and the password wasn't sent across.... what to do?  However, your app lives on and needs to be updated!

 

Build failed error: cannot find symbol Build.VERSION.SDK_INT >= Build.VERSION_CODES.S &&

Android Studio build errors

Build failed error: cannot find symbol if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R)

or

cannot find symbol Build.VERSION.SDK_INT >= Build.VERSION_CODES.S &&

 

To resolve - upgrade the compileSdkVersion and targetSdkVersion to 31 in your grade file.  Note, this setting could be in one of the following files

Subscribe to Android