I want to update my application in the Google Play Store, it cannot accept an updated file with the same version.
I changed the version from the build.gradle file:
android {
compileSdkVersion 21
buildToolsVersion "21.1.2"
defaultConfig {
applicationId "net.koorasudan.app"
minSdkVersion 14
targetSdkVersion 21
versionCode 5.1
versionName "5.1"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
But when I synchronize gradle, it shows me this error:
Error: (23, 0) gradle DSL method not found: 'versionCode ()' Possible reasons:
The SmartView 3 project may use a version of gradle that does not contain a method. Open the gradle shell file. The gradle plugin may not be in the build file. Apply gradle plugin
How to solve this problem?
source
share