Search code examples
androidhelpshift

Helpshift FATAL EXCEPTION [android]


My project Integrated Helpshift SDK. Before updated current version sdk v3.9.0, my app running ok. But this time I have falta exception. This is logcat:

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 is Libs compiled. so I can't change it.

This's my build.gradle file

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')
}

Please help me fix this error. Thanks and best Regards.


Solution

  • I am Paranjay here from Helpshift.

    As it is mentioned you can grab the latest version through gradle by adding these dependencies :

    dependencies {
    compile 'com.android.support:support-v4:21.0.+'
    compile 'com.helpshift:android-aar:3.9.0'
    }
    

    And then you can set the SDK version requirement as mentioned here : https://developers.helpshift.com/android/getting-started/#version-requirements

    You can report any problem or issues you are facing on our support email : [email protected].

    This will ensure you a quick reply .

    Thanks.