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!

 

Possible solutions

grade.properties

This is a great starting point.  Have a look in your android/gradle.properties file.  Unfortunately, the android/ directory didn't exist and I had to run the command prompt to generate.  So no password!

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

Android Studio Run/Debug configuration error: Module not specified

Approaches to resolving “Module not specified” Error in Android Studio

When attempting to run or debug the application on Android Studio you can come across the error “Module not specified” in the Android Studio.  This article will outline approaches I took to get a resolution to this issue.

 

Subscribe to Android