检查module是否采用了kotlin混合编程,如果是需要加上
apply plugin: 'kotlin-kapt'
defaultConfig {
minSdkVersion Integer.parseInt(MIN_SDK_VERSION)
targetSdkVersion Integer.parseInt(TARGET_SDK_VERSION)
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles "consumer-rules.pro"
javaCompileOptions {
annotationProcessorOptions {
arguments = [moduleName: project.getName()]
includeCompileClasspath = true
}
}
}
dependencies {标签:kapt,no,VERSION,Arouter,Integer,parseInt,path,match From: https://www.cnblogs.com/baiyi168/p/16731109.html
kapt 'com.alibaba:arouter-compiler:1.1.4'
}