【问题标题】:what is the reason to raise the error without using firebase in android在android中不使用firebase而引发错误的原因是什么
【发布时间】:2016-07-05 04:51:41
【问题描述】:

错误:

进程:com.xportsoft.epicsudoku,PID:5380
java.lang.NoClassDefFoundError: com.google.firebase.FirebaseOptions

Gradle 文件:

dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:appcompat-v7:24.0.0'
    compile 'com.google.android.gms:play-services:9.2.0'
}
defaultConfig {
    .....
    multiDexEnabled true
}

【问题讨论】:

    标签: android google-signin


    【解决方案1】:

    不要使用

    compile 'com.google.android.gms:play-services:9.2.0'

    完全依赖于你的项目。仅使用项目所需的 google-play-services 库中的特定库依赖项。例如,如果您想使用 google 地方,请使用以下行

    compile 'com.google.android.gms:play-services-location:9.0.2'
    

    Firebase 现在是 Google 的一部分,因此您的项目中出现了这个问题。

    更多信息请参考Google Documentation

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-06-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-04-17
      • 1970-01-01
      • 2011-01-24
      相关资源
      最近更新 更多