Android app crashing on Android 8.0 (Google Pixel XL)

My App works fine, but since Android Oreo came to Google Pixel XL, it continues to crash the next line of the Exception stack

Fatal Exception: java.lang.AbstractMethodError: abstract method "boolean android.app.job.JobServiceEngine.onStartJob (android.app.job.JobParameters)" at android.app.job.JobServiceEngine $ JobHandler.handleMessage (JobServiceEngine.avaava.java ) on android.os.Handler.dispatchMessage (Handler.java:105) on android.os.Looper.loop (Looper.java:164) at android.app.ActivityThread.main (ActivityThread.java:6541) in java.lang .reflect.Method.invoke (Method.java) at com.android.internal.os.Zygote $ MethodAndArgsCaller.run (Zygote.java:240) at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:76767 )

Can anyone help me with this?

+5
source share
1 answer

If proguard is enabled for your application, this may be the case when static inner classes are removed. You can add properties to proguard to save an inner class that implements JobServiceEngine with the -keep command.

For example, if the class that implements JobServiceEngine is JobServiceEngineImpl, which is the static inner class of JobIntentService, add

-keep class android.support.v4.app.JobIntentService$* { * } 
0
source

Source: https://habr.com/ru/post/1273468/


All Articles