Gabriel
10/29/2020, 9:14 AMExpression 'android' cannot be invoked as a function. The function 'invoke()' is not found
a brief view of my gradle file is this:
plugins {
id("com.android.application")
kotlin("android")
}
android {
compileSdkVersion(TARGET_SDK_VERSION)
defaultConfig {
minSdkVersion(MIN_SDK_VERSION)
targetSdkVersion(TARGET_SDK_VERSION)
testInstrumentationRunner("androidx.test.runner.AndroidJUnitRunner")
consumerProguardFiles("<http://consumer-rules.pro|consumer-rules.pro>")
}
buildTypes {
getByName("release") {
isMinifyEnabled = false
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"<http://proguard-rules.pro|proguard-rules.pro>"
)
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = "1.8"
useIR = true
}
buildFeatures {
compose = true
}
composeOptions {
kotlinCompilerExtensionVersion = COMPOSE_VERSION
kotlinCompilerVersion = KOTLIN_VERSION
}
}
Vampire
10/29/2020, 9:37 AMapply from
or a pre-compiled script plugin?no
10/29/2020, 9:52 AMJavier
10/29/2020, 9:55 AMJavier
10/29/2020, 9:58 AMtargetCompatibility
only works with library modules for me, with application I have to use that methodGabriel
10/29/2020, 10:21 AM