Firebase在android 4.4.4中崩溃

时间:2016-09-04 13:53:30

标签: android firebase android-4.4-kitkat

应用程序在很多版本中运行良好但在4.4.4中崩溃

  

java.lang.NoClassDefFoundError:com.google.firebase.FirebaseOptions   在com.google.firebase.FirebaseApp.zzek(未知来源)

我的应用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'

2 个答案:

答案 0 :(得分:0)

有同样的问题。就我而言,

  1. 我的配置是解析推送通知。我摆脱了它。
  2. 更新了Google Play服务和 Google存储库
  3. 清理并重建项目。

答案 1 :(得分:0)

将其添加到清单文件中的应用程序标记: 机器人:名称= “android.support.multidex.MultiDexApplication”