【发布时间】:2016-06-08 09:02:34
【问题描述】:
每当我运行我的代码时,都会收到此异常
java.lang.NoClassDefFoundError: com.google.firebase.FirebaseOptions
即使我没有在我的应用程序的任何地方使用 firebase。 是的,尝试了类似问题的几个解决方案。但是没有任何效果。
这是我的 bild.gradle 依赖项
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:multidex:1.0.0'
compile 'com.google.android.gms:play-services:9.0.0'
compile 'com.google.code.gson:gson:2.2.4'
compile files('libs/FlurryAnalytics-4.2.0.jar')
compile files('libs/localytics.jar')
compile files('libs/main .jar')
compile files('libs/gcm.jar')
compile files('libs/picasso-2.3.2.jar')
compile files('libs/retrofit-1.9.0.jar')
compile 'com.android.support:recyclerview-v7:23.0.0'
compile 'io.branch.sdk.android:library:1.+'
compile 'com.android.support:appcompat-v7:23.0.1'
compile('com.crashlytics.sdk.android:crashlytics:2.5.5@aar') {
transitive = true;
}
}
提前致谢
【问题讨论】:
-
请把 build.gradle 文件内容贴出来
-
发布的构建依赖项
标签: android android-studio firebase