apply plugin: 'com.android.application' android { compileSdkVersion 31 buildToolsVersion "31.0.0" defaultConfig { applicationId "com.example.androidtermwork" minSdkVersion 21 targetSdkVersion 31 versionCode 1 versionName "1.0" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" vectorDrawables.useSupportLibrary = true } 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.cardview:cardview:1.0.0' //noinspection GradleCompatible implementation 'com.google.android.material:material:1.3.0' implementation 'com.squareup.retrofit2:converter-gson:2.4.0' implementation "com.squareup.retrofit2:retrofit:2.8.1" implementation 'androidx.viewpager2:viewpager2:1.0.0' implementation fileTree(dir: 'libs', include: ['*.jar']) implementation 'androidx.appcompat:appcompat:1.0.2' implementation 'androidx.constraintlayout:constraintlayout:1.1.3' implementation 'com.google.android.material:material:1.0.0' implementation 'androidx.vectordrawable:vectordrawable:1.0.1' implementation 'androidx.navigation:navigation-fragment:2.3.5' implementation 'androidx.navigation:navigation-ui:2.3.5' implementation 'androidx.lifecycle:lifecycle-extensions:2.0.0' implementation 'androidx.coordinatorlayout:coordinatorlayout:1.2.0' testImplementation 'junit:junit:4.12' androidTestImplementation 'androidx.test:runner:1.1.1' androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1' implementation group: 'com.google.code.gson', name: 'gson', version: '2.8.5' implementation 'com.android.volley:volley:1.1.1' implementation 'com.scwang.smart:refresh-layout-kernel:2.0.1' //核心必须依赖 implementation 'com.scwang.smart:refresh-header-classics:2.0.1' //经典刷新头 implementation 'com.scwang.smart:refresh-footer-classics:2.0.1' //经典加载 implementation 'cn.jzvd:jiaozivideoplayer:7.7.0' implementation 'de.hdodenhof:circleimageview:3.1.0' }