Gradle Dsl Method Not Found: 'versioncode()'
Have a problem build my Android project. I using Grgit to fill versionCode and versionName in gradle. Everything worked fine, until I updated Android Studio and gradle tools to new
Solution 1:
Solved using .toInteger()
for version code.
productFlavors {
dev {
versionCode gitVersionCodeTime.toInteger()
versionName gitVersionName
dimension "build"
applicationIdSuffix ".dev"
}
prod {
versionCode gitVersionCode.toInteger()
versionName gitVersionName
dimension "build"
}
}
Post a Comment for "Gradle Dsl Method Not Found: 'versioncode()'"