gradle-advanced-build-version
gradle-advanced-build-version copied to clipboard
No signature of method: build_f044933rfu48jwy12cmmduppn.android()
I'm getting:
> No signature of method: build_f044933rfu48jwy12cmmduppn.android() is applicable for argument types: (build_f044933rfu48jwy12cmmduppn$_run_closure2) values: [build_f044933rfu48jwy12cmmduppn$_run_closure2@2e3d151e]
Projects build.gradle
:
ext.kotlin_version = "1.5.30"
repositories {
google()
mavenCentral()
jcenter()
}
dependencies {
classpath "com.android.tools.build:gradle:4.2.2"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'me.moallemi.gradle:advanced-build-version:1.7.3'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
My app's build.gradle
:
id 'com.android.application'
id 'kotlin-android'
id 'me.moallemi.advanced-build-version'
}
advancedVersioning {
nameOptions {
versionMajor 1
versionMinor 3
versionPatch 6
versionBuild 8
}
codeOptions {
versionCodeType 'GIT_COMMIT_COUNT'
}
outputOptions { }
}
android {
compileSdkVersion 30
buildToolsVersion "30.0.2"
defaultConfig {
// ...
versionCode advancedVersioning.versionCode()
versionName advancedVersioning.versionName()
Gradle:
------------------------------------------------------------
Gradle 6.7.1
------------------------------------------------------------
Build time: 2020-11-16 17:09:24 UTC
Revision: 2972ff02f3210d2ceed2f1ea880f026acfbab5c0
Kotlin: 1.3.72
Groovy: 2.5.12
It seem to have worked once I've migrated to Kotlin DSL