Skip to content

Instantly share code, notes, and snippets.

@aduquet
Created October 31, 2022 21:51
Show Gist options
  • Save aduquet/253f55041770d0016173dd1a21bc60c5 to your computer and use it in GitHub Desktop.
Save aduquet/253f55041770d0016173dd1a21bc60c5 to your computer and use it in GitHub Desktop.
keep getting this message in the play store Version code 1 has already been used. Try another version code
I got this solve by changing the versionCode Does not admit floats, and the versionName, I have not try modifying one a let the other tho
defaultConfig {
applicationId "your.applicationId"
minSdkVersion 23
targetSdkVersion 30
versionCode 1 // Change to a higher number
versionName "1.0.1" // Change to a higher number
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
javaCompileOptions {
annotationProcessorOptions {
arguments = ["room.schemaLocation": "$projectDir/schemas".toString()]
}
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment