Android-job: Crash IncompatibleClassChangeError

Created on 18 Apr 2017  路  4Comments  路  Source: evernote/android-job

Seems like SQLiteDatabase is not implementing Closeable on some platforms. Android version code 14 in 100% errors. Library version - 1.1.8.

Fatal Exception: java.lang.IncompatibleClassChangeError: interface not implemented at com.evernote.android.job.JobStorage.closeSilently(SourceFile:453) at com.evernote.android.job.JobStorage.getAllJobRequests(SourceFile:195) at com.evernote.android.job.JobManager.getAllJobRequestsForTag(SourceFile:280) at by.euanpa.schedulegrodno.GoesApplication.scheduleUpdateChecker(SourceFile:43) at by.euanpa.schedulegrodno.GoesApplication.onCreate(SourceFile:37) at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:969) at android.app.ActivityThread.handleBindApplication(ActivityThread.java:3983) at android.app.ActivityThread.access$1300(ActivityThread.java:127) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1189) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:137) at android.app.ActivityThread.main(ActivityThread.java:4493) at java.lang.reflect.Method.invokeNative(Method.java) at java.lang.reflect.Method.invoke(Method.java:511) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:788) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:555) at dalvik.system.NativeStart.main(NativeStart.java)

bug

Most helpful comment

This will be fixed in the next version, you can give it a try if you want:

repositories {
    jcenter()

    maven {
        url 'https://oss.sonatype.org/content/repositories/snapshots/'
    }
}

dependencies {
    compile 'com.evernote:android-job:1.1.10-SNAPSHOT'
}

All 4 comments

Are you sure that you're using version 1.1.8? Because this code only exists since 1.1.9. SQLiteDatabase implements Closeable on all Android versions. This seems to be a different problem.

I also wan't able to reproduce the crash. How do you include the library?

I'm sorry, it's really 1.1.9.
I looked at grepcode 4.0.3: http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/4.0.3_r1/android/database/sqlite/SQLiteDatabase.java/ Database extends SQLiteClosable, which not implement Closeable.
Crash is from fabric, I wan't reproduce too.
Included via Gradle: compile 'com.evernote:android-job:1.1.9'

Ah, I only looked at the documentation there is says SQLiteClosable implements Closable. Thanks!

This will be fixed in the next version, you can give it a try if you want:

repositories {
    jcenter()

    maven {
        url 'https://oss.sonatype.org/content/repositories/snapshots/'
    }
}

dependencies {
    compile 'com.evernote:android-job:1.1.10-SNAPSHOT'
}
Was this page helpful?
0 / 5 - 0 ratings