應用了很多版本的工作正常,但在4.4.4火力地堡轟然安卓4.4.4
java.lang.NoClassDefFoundError: com.google.firebase.FirebaseOptions at com.google.firebase.FirebaseApp.zzek(Unknown Source)
我的應用程序的build.gradle
apply plugin: 'com.android.library'
android {
compileSdkVersion 23
buildToolsVersion "24.0.1"
defaultConfig {
minSdkVersion 9
targetSdkVersion 23
versionCode 12
versionName "1.0.12"
multiDexEnabled true
}
buildTypes {
release {
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:multidex:1.0.1'
compile 'com.google.android.gms:play-services:9.4.0'
compile 'com.android.support:appcompat-v7:23.4.0'
compile 'com.android.support:support-v4:23.4.0'
compile 'com.android.volley:volley:1.0.0'
compile 'com.github.bumptech.glide:glide:3.7.0'
compile 'com.google.firebase:firebase-core:9.4.0'
compile 'com.google.firebase:firebase-messaging:9.4.0'
compile 'com.google.firebase:firebase-crash:9.4.0'
}
apply plugin: 'com.google.gms.google-services'
請在問題你的源代碼,而不是一個鏈接的截圖你源代碼。 – zvone
@zvone編輯done –
嘗試設置'minifyEnabled false',這很可能是proguard問題 –