plugins { id 'com.android.application' } android { compileSdk 31 defaultConfig { applicationId "com.ygtx.emcs" minSdk 27 targetSdk 31 versionCode 32 versionName "1.4.2" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } compileOptions { sourceCompatibility JavaVersion.VERSION_11 targetCompatibility JavaVersion.VERSION_11 } viewBinding { enabled = true } dataBinding { enabled = true } sourceSets.main { jni.srcDirs = []//禁用as自动生成mk jniLibs.srcDirs = ['libs', 'src/main/jniLibs'] //指定libs目录 } } dependencies { implementation fileTree(dir: "libs", include: ["*.jar"]) implementation 'androidx.appcompat:appcompat:1.3.0' implementation 'com.google.android.material:material:1.4.0' implementation 'androidx.constraintlayout:constraintlayout:2.0.4' testImplementation 'junit:junit:4.13.2' androidTestImplementation 'androidx.test.ext:junit:1.1.3' androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0' implementation 'org.xutils:xutils:3.4.0' implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.0.0' implementation "org.greenrobot:eventbus:3.2.0" implementation 'com.google.code.gson:gson:2.8.6' implementation 'com.squareup.okhttp3:okhttp:4.9.3' implementation project(path: ':barcode') }