RunTimeException LibsDexMergerForDebug

时间:2018-04-03 18:56:11

标签: android firebase exception runtime runtimeexception

摇篮

//noinspection GradleCompatible
apply plugin: 'com.android.application'

android {
compileSdkVersion 26
defaultConfig {
    applicationId 'com.appmaster.akash.messageplus'
    minSdkVersion 17
    targetSdkVersion 26
    versionCode 1
    versionName "1.0"
    testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"

}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}
productFlavors {
}
}

dependencies {
testImplementation 'junit:junit:4.12'
//noinspection GradleCompatible
androidTestImplementation 'com.android.support.test:runner:1.0.1'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:26.1.0'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
implementation 'com.android.support:support-v4:26.1.0'

compile 'com.android.support:design:26.1.0'
compile 'com.android.support:appcompat-v7:26.1.0'

compile 'com.github.bumptech.glide:glide:3.6.1'
compile 'de.hdodenhof:circleimageview:2.1.0'
compile 'com.theartofdev.edmodo:android-image-cropper:2.6.+'

compile 'com.android.volley:volley:1.0.0'

//noinspection GradleCompatible
implementation 'com.firebaseui:firebase-ui-database:3.1.0'
implementation 'com.firebaseui:firebase-ui-auth:3.1.0'
implementation 'com.firebaseui:firebase-ui-storage:3.1.0'
compile 'com.google.firebase:firebase-core:11.4.2'
compile 'com.google.firebase:firebase-auth:11.4.2'
compile 'com.google.firebase:firebase-database:11.4.2'
compile 'com.google.firebase:firebase-storage:11.4.2'
compile 'com.google.firebase:firebase-messaging:11.4.2'
compile 'com.firebase:firebase-client-android:2.5.2+'
compile 'com.firebaseui:firebase-ui-auth:3.1.0'


}
apply plugin: 'com.google.gms.google-services'

我不知道为什么我一直收到这个错误...我已经搜索了很多,原因是firebase库版本不匹配......但即使所有版本都相同,我也会收到此错误..请帮忙......如果你需要更多的代码,请在我添加theartofdev库之前询问它是否正常工作...但我不认为这个错误是因为那个

1 个答案:

答案 0 :(得分:0)

Android Image Imageper的2.6+版本为built with Support Libs 27.x.x。使用版本2.5.1与26.1.0兼容

compile 'com.theartofdev.edmodo:android-image-cropper:2.5.1'

此外,您还包括旧版Firebase SDK:

compile 'com.firebase:firebase-client-android:2.5.2+'

你真的需要吗?在同一个项目中同时使用遗留和“新”SDK是有风险的。我不知道旧版SDK中的任何功能在新版本中也不可用。请参阅Upgrade Guide