我的项目集成了 Helpshift SDK。在更新当前版本 sdk v3.9.0 之前,我的应用程序运行正常。但是这次我有falta例外。这是日志猫:
E/AndroidRuntime﹕ FATAL EXCEPTION: Thread-5111
Process: my.packge.app, PID: 14498
java.lang.NoClassDefFoundError: com.helpshift.util.HSTimeUtil
at com.helpshift.HSApiClient.addAuth(HSApiClient.java:179)
at com.helpshift.HSApiClient.access$100(HSApiClient.java:59)
at com.helpshift.HSApiClient$1.run(HSApiClient.java:229)
at java.lang.Thread.run(Thread.java:841)
Helpshift 是 Libs 编译的。所以我无法改变它。
这是我的build.gradle
文件
apply plugin: 'com.android.application'
android {
dexOptions {
javaMaxHeapSize "4g"
jumboMode = true
}
compileSdkVersion 21
buildToolsVersion '22.0.1'
defaultConfig {
applicationId "my.package.app"
minSdkVersion 19
targetSdkVersion 19
versionCode 1
versionName "1.0"
multiDexEnabled=true
}
packagingOptions {
exclude 'META-INF/LICENSE.txt'
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
productFlavors {
}
}
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:appcompat-v7:21.0.3'
compile 'com.google.code.gson:gson:2.2.4'
compile 'joda-time:joda-time:2.3'
compile project(':HelpShift')
compile files('libs/gcm.jar')
}
请帮我解决这个错误。谢谢和最好的问候。