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