plugins { id 'com.android.application' } android { compileSdkVersion 30 buildToolsVersion "30.0.3" defaultConfig { applicationId "com.example.food" minSdkVersion 16 targetSdkVersion 30 versionCode 1 versionName "1.0" 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 { implementation 'androidx.appcompat:appcompat:1.1.0' implementation 'com.google.android.material:material:1.1.0' implementation 'androidx.constraintlayout:constraintlayout:1.1.3' testImplementation 'junit:junit:4.+' androidTestImplementation 'androidx.test.ext:junit:1.1.1' androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0' //litepal implementation 'org.litepal.android:core:1.6.1' //glide图片加载框架 implementation 'com.github.bumptech.glide:glide:4.11.0' //recyclerview implementation 'androidx.recyclerview:recyclerview:1.1.0' compile 'com.google.code.gson:gson:2.7' //网络请求 implementation 'com.squareup.okhttp3:okhttp:4.4.0' implementation 'com.squareup.okhttp3:logging-interceptor:4.4.0' implementation 'com.zhy:okhttputils:2.0.0' //glide图片加载框架 implementation 'com.github.bumptech.glide:glide:3.6.1' }