2
我们遇到了一个非常令人沮丧的问题与我们的应用程序。在尝试添加谷歌播放位置服务时,我们收到了java.lang.NoClassDefFoundError: org.joda.time.chrono.ISOChronology
。这只发生在我们的调试版本上。我们已将其缩小到 compile "com.google.android.gms:play-services-location:9.8.0"
在我们的build.gradle
。无论是否使用位置服务,包含此行都会导致此错误。谷歌播放服务基地打破调试版本的乔达时间
我们在我们的应用水平build.gradle
依赖性以下 ``` 依赖{ 编译项目( ':依赖关系:凌空')
compile project(':modules:app-config')
compile project(':modules:reeldatabase')
compile project(':modules:sync')
compile project(':modules:greeting')
compile project(':modules:login')
compile project(':modules:viewshifts')
compile project(':modules:workshift')
// Google Support Libraries
compile "com.android.support:appcompat-v7:${rootProject.ANDROID_SUPPORT_LIBRARY_VER}"
compile "com.android.support:support-v4:${rootProject.ANDROID_SUPPORT_LIBRARY_VER}"
compile "com.google.firebase:firebase-messaging:${rootProject.FIREBASE_VER}"
compile "com.google.android.gms:play-services-location:9.8.0"
// Mock Web Server
debugCompile 'com.squareup.okhttp3:mockwebserver:3.2.0'
// Developer Tools
debugCompile 'com.facebook.stetho:stetho:1.3.1'
// Journey Tests
androidTestCompile "com.android.support.test.espresso:espresso-intents:$rootProject.ESPRESSO_VER"
androidTestCompile ("com.android.support.test.espresso:espresso-contrib:$rootProject.ESPRESSO_VER") {
exclude group: 'com.android.support'
}
apply plugin: 'com.google.gms.google-services'
任何帮助将不胜感激,谢谢
您可能希望通过将相关性更改为net.danlew:android.joda:2.9.2来检查相关[SO问题](http://stackoverflow.com/q/35865127/5995040)中的解决方案''或者如果它是ISO8601格式,那么即使不使用Joda,也可以解析它。希望这可以帮助。 –
感谢您的回应;我们最终弄清楚下面的答案是什么。 – adamwellsdev