What is a reason behind this "OnChecksumsReadyListener.onChecksumsReady" AbstractMethodError?

Viewed 206

I received this exception on release build with Android 12.

exception.class.missing._Unknown_: java.lang.AbstractMethodError    abstract method "void android.content.pm.PackageManager$OnChecksumsReadyListener.onChecksumsReady(java.util.List)"
  at android.app.ApplicationPackageManager$2.onChecksumsReady (ApplicationPackageManager.java:969)
  at android.content.pm.IOnChecksumsReadyListener$Stub.onTransact (IOnChecksumsReadyListener.java:87)
  at android.os.Binder.execTransactInternal (Binder.java:1184)
  at android.os.Binder.execTransact (Binder.java:1143)

Anyone knows reason behind this? or How to fix this issue!?

1 Answers

Related to the common AbstractMethodError, you can get more information from this topic: https://stackoverflow.com/a/17970129/19303683

In my case, i get this problem when i try to downgrade target sdk to 30. My solution is:

  • Find all dependencies related to work-runtime (such as firebase ads) using Gradlew and downgrade them.

  • Remove this code from gradle if you have:

    configurations.all {resolutionStrategy { force 'androidx.work:work-runtime:2.6.0' }}

Related