1. Download our Official Android App: Forums for Android!

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

Discussion in 'Android Development' started by ac4android, Jul 19, 2016.

  1. ac4android

    ac4android Well-Known Member
    Thread Starter
    Rank:
    None
    Points:
    53
    Posts:
    198
    Joined:
    Nov 3, 2015

    Nov 3, 2015
    198
    29
    53
    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

    [​IMG]
    Ahmed Mounir

    5722614


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

    Advertisement

  2. ac4android

    ac4android Well-Known Member
    Thread Starter
    Rank:
    None
    Points:
    53
    Posts:
    198
    Joined:
    Nov 3, 2015

    Nov 3, 2015
    198
    29
    53
    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'
    }
     

Share This Page

Loading...