plugins { id 'com.android.application' } android { compileSdk 31 defaultConfig { applicationId "com.example.stlink" minSdk 21 targetSdk 31 versionCode 1 versionName "1.0" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" ndk { // 设置支持的SO库架构(开发者可以根据需要,选择一个或多个平台的so) abiFilters "armeabi", "armeabi-v7a", "arm64-v8a", "x86","x86_64" } } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } buildFeatures { viewBinding true } sourceSets { main { jniLibs.srcDir 'libs' } } } dependencies { implementation 'androidx.appcompat:appcompat:1.3.0' implementation 'androidx.constraintlayout:constraintlayout:2.0.4' implementation 'androidx.navigation:navigation-fragment:2.3.5' implementation 'androidx.navigation:navigation-ui:2.3.5' implementation 'androidx.legacy:legacy-support-v4:1.0.0' implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.3.1' implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.3.1' implementation files('libs\\BaiduLBS_Android.jar') implementation 'androidx.test:monitor:1.4.0' testImplementation 'junit:junit:4.13.2' androidTestImplementation 'androidx.test.ext:junit:1.1.3' androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0' implementation 'com.google.android.material:material:1.6.0' implementation "androidx.viewpager2:viewpager2:1.0.0" def nav_version = "2.1.0" implementation "androidx.navigation:navigation-fragment:$nav_version" implementation "androidx.navigation:navigation-ui:$nav_version" // Java language implementation implementation "androidx.fragment:fragment:1.4.1" implementation 'com.squareup.okhttp3:okhttp:3.10.0' implementation 'com.google.code.gson:gson:2.8.6' implementation 'com.github.bumptech.glide:glide:4.11.0' // https://mvnrepository.com/artifact/org.ligboy.retrofit2/converter-fastjson-android implementation 'org.ligboy.retrofit2:converter-fastjson-android:2.1.0' //图片选择器 implementation 'io.github.lucksiege:pictureselector:v3.10.2' // image compress library (Not necessary) implementation 'io.github.lucksiege:compress:v3.10.2' // uCrop library implementation 'io.github.lucksiege:ucrop:v3.10.2' //浮动按钮 implementation 'gdut.bsx:xdraglayout:1.1.1' //二维码的生成与解析 // https://mvnrepository.com/artifact/com.google.zxing/core implementation 'com.google.zxing:core:3.5.0' implementation 'com.journeyapps:zxing-android-embedded:4.1.0' implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.1.0" }