如何降级android支持库

时间:2018-03-16 19:28:05

标签: android gradle sdk

我将sdk更新为27.1.0,但现在我想降级到27.0.2 我的build.gradle包含以下行:

 return thisAppDb.ref('userRemindMatches/'+child.key+'/'+compId).on('value',(snapshot)=> {

但android工作室说,它发现了一些版本为27.1.0的lib,并且所有版本都必须具有相同版本。 另一个问题是我无法在apply plugin: 'com.android.application' apply plugin: 'org.greenrobot.greendao' apply plugin: 'project-report' android { compileSdkVersion 27 buildToolsVersion '27.0.3' defaultConfig { applicationId "cz.my.package" minSdkVersion 19 targetSdkVersion 27 versionCode 73 versionName "1.1.5" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } } greendao { schemaVersion 6 } dependencies { implementation fileTree(include: ['*.jar'], dir: 'libs') androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', { exclude group: 'com.android.support', module: 'support-annotations' }) implementation 'com.android.support:appcompat-v7:27.0.2' implementation 'com.android.support:support-v4:27.0.2' implementation 'com.android.support:design:27.0.2' implementation 'com.android.support:recyclerview-v7:27.0.2' implementation 'com.google.android.gms:play-services-maps:11.8.0' implementation 'com.google.firebase:firebase-messaging:11.8.0' implementation 'com.github.bumptech.glide:glide:4.0.0' implementation 'com.jakewharton:butterknife:8.8.1' implementation 'de.hdodenhof:circleimageview:2.1.0' implementation 'org.apmem.tools:layouts:1.10@aar' implementation 'com.davemorrissey.labs:subsampling-scale-image-view:3.6.0' implementation 'com.thoughtbot:expandablerecyclerview:1.3' implementation 'in.championswimmer:SimpleFingerGestures_Android_Library:1.2' implementation 'org.greenrobot:greendao:3.2.2' implementation 'com.kyleduo.switchbutton:library:2.0.0' implementation 'com.theartofdev.edmodo:android-image-cropper:2.6.0' implementation 'cz.martinforejt:swipetohidelayout:1.0.4' implementation 'org.apache.commons:commons-lang3:3.4' testImplementation 'junit:junit:4.12' annotationProcessor 'com.github.bumptech.glide:compiler:4.0.0' annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1' implementation files('libs/YouTubeAndroidPlayerApi.jar') implementation 'org.jetbrains:annotations-java5:15.0' } apply plugin: 'com.google.gms.google-services'

中找到27个文件夹

如何降级支持库?

0 个答案:

没有答案