添加定义:
def AAVersion = '4.4.0'
添加依赖:
annotationProcessor "org.androidannotations:androidannotations:$AAVersion" implementation "org.androidannotations:androidannotations-api:$AAVersion"
apply plugin: 'com.android.application'
def AAVersion = '4.4.0'
android {
compileSdkVersion 28
defaultConfig {
applicationId "com.example.ndktest"
minSdkVersion 20
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
ndk {
moduleName "hello"
abiFilters "armeabi-v7a", "x86"
ldLibs("log")
}
javaCompileOptions {
annotationProcessorOptions {
arguments = [resourcePackageName: project.getName()]
}
}