AndroidStudio版本:3.5.2
gradle版本:5.4.1
tools:com.android.tools.build:gradle:3.5.3
网上搜了下,都说是需要将要编译注解的library添加
annotationProcessor即可。
可是我看了我的项目结构,已经添加了这些依赖:
app.build
android {
compileSdkVersion 29
buildToolsVersion "29.0.2"
defaultConfig {
applicationId "com.magic.ppjoke"
minSdkVersion 22
targetSdkVersion 29
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompati