• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps java.lang.NoClassDefFoundError: com.google.firebase.FirebaseOptions

ac4android

Well-Known Member
This is another bug that has been around a while. I don't even use Firebase...

java.lang.NoClassDefFoundError: com.google.firebase.FirebaseOptions

And here is what the PM said:


Thanks for posting the question Sanket. I'm the PM on Firebase Test Lab (formerly Cloud Test Lab). Wanted to let you know that this is a bug on our end that should now be fixed.

It seems that your app is currently using the latest and greatest Google Play Services. We updated our devices to use them last week then we discovered a bug that had us revert to an older version. Right now, we re-deployed the latest Play services on our devices so rerunning your tests should work. If not, please let me know and we'll look into it and fix it.


shareedit

answered May 24 at 21:00


Ahmed Mounir

5722614


http://stackoverflow.com/questions/...ounderror-com-google-firebase-firebaseoptions
 
SOLUTION:
http://stackoverflow.com/questions/...founderror-com-google-firebase-firebaseoption

I replaced 'com.google.android.gms:play-services:9.0.2' with firebase and it work for me (I noticed others dropped back to older versions ):

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.4.0'
compile 'com.android.support:design:23.4.0'
compile 'com.android.support:support-v4:23.4.0'
compile 'com.google.firebase:firebase-ads:9.0.2'
}
 
Back
Top Bottom