Firebase crash in android 4.4.4

379 views
Skip to first unread message

Ramiro Neto

unread,
Sep 4, 2016, 12:01:02 AM9/4/16
to Firebase Google Group
App working fine in a lot of versions but crashing in 4.4.4

java.lang.NoClassDefFoundError: com.google.firebase.FirebaseOptions
at com.google.firebase.FirebaseApp.zzek(Unknown Source)
at com.google.firebase.provider.FirebaseInitProvider.onCreate(Unknown Source)
at android.content.ContentProvider.attachInfo(ContentProvider.java:1591)
at android.content.ContentProvider.attachInfo(ContentProvider.java:1562)
at com.google.firebase.provider.FirebaseInitProvider.attachInfo(Unknown Source)
at android.app.ActivityThread.installProvider(ActivityThread.java:4855)
at android.app.ActivityThread.installContentProviders(ActivityThread.java:4450)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4390)
at android.app.ActivityThread.access$1500(ActivityThread.java:139)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1270)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5086)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
at dalvik.system.NativeStart.main(Native Method)

My app build.gradle

apply plugin: 'com.android.library'

android {
compileSdkVersion 23
buildToolsVersion "22.0.1"

defaultConfig {
minSdkVersion 9
versionCode 12
versionName "1.0.12"
}
buildTypes {
release {
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}

dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.4.0'
compile 'com.android.volley:volley:1.0.0'
compile 'com.github.bumptech.glide:glide:3.7.0'
compile 'com.android.support:multidex:1.0.1'
compile 'com.google.android.gms:play-services:9.4.0'
compile "com.google.firebase:firebase-core:9.0.0"
compile "com.google.firebase:firebase-messaging:9.0.0"
compile 'com.google.firebase:firebase-crash:9.0.0'
}

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

Doug Stevenson

unread,
Sep 4, 2016, 6:19:15 PM9/4/16
to Firebase Google Group
Ramiro,

The versions for all of your Play Services and Firebase dependencies should match, and the latest version is 9.4.0.  You're currently showing a mix of 9.4.0 and 9.0.0.  (9.0.0 is the very first version that was ever released for Firebase client libraries, and a lot has been improved since then.)

Doug
Reply all
Reply to author
Forward
0 new messages