apply plugin: 'com.android.application' android { compileSdkVersion 28 defaultConfig { applicationId "com.huantansheng.easyphotos.demo" minSdkVersion 15 targetSdkVersion 28 versionCode 2 versionName "1.0.2" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } } dependencies { implementation fileTree(include: ['*.jar'], dir: 'libs') implementation 'com.android.support:appcompat-v7:28.0.0' implementation 'com.android.support:support-v4:28.0.0' implementation 'com.android.support.constraint:constraint-layout:1.1.3' implementation 'com.android.support:design:28.0.0' implementation 'com.android.support:recyclerview-v7:28.0.0' /*implementation 'androidx.legacy:legacy-support-v4:1.0.0' implementation 'androidx.appcompat:appcompat:1.1.0' implementation 'androidx.recyclerview:recyclerview:1.1.0' implementation 'androidx.constraintlayout:constraintlayout:1.1.3' implementation 'com.google.android.material:material:1.1.0'*/ testImplementation 'junit:junit:4.12' implementation project(':easyPhotos') implementation("com.github.bumptech.glide:glide:4.9.0") { exclude group: "com.android.support" } annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0' //检测内存泄漏 debugImplementation 'com.squareup.leakcanary:leakcanary-android:1.5.4' releaseImplementation 'com.squareup.leakcanary:leakcanary-android-no-op:1.5.4' }