plugins { id 'com.android.application' } android { namespace 'com.nbee.echolink' compileSdk 31 defaultConfig { applicationId "com.nbee.echolink" minSdk 26 targetSdk 31 versionCode 1 versionName "1.0.1" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } } dependencies { // https://mvnrepository.com/artifact/com.squareup.okhttp3/okhttp implementation 'com.squareup.okhttp3:okhttp:4.10.0' // https://mvnrepository.com/artifact/org.projectlombok/lombok compileOnly 'org.projectlombok:lombok:1.18.28' // https://mvnrepository.com/artifact/com.google.code.gson/gson implementation 'com.google.code.gson:gson:2.10' // https://mvnrepository.com/artifact/com.jakewharton.timber/timber implementation 'com.jakewharton.timber:timber:5.0.1' // 添加 WorkManager 的依赖 implementation "androidx.work:work-runtime:2.7.0" implementation 'androidx.appcompat:appcompat:1.2.0' implementation 'com.google.android.material:material:1.3.0' implementation 'androidx.constraintlayout:constraintlayout:2.1.3' testImplementation 'junit:junit:4.13.2' androidTestImplementation 'androidx.test.ext:junit:1.1.4' androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0' }