3

最近我们开始遇到似乎源自 Glide 的崩溃(Firebase Crashlytics),我们在我们的应用程序中找不到任何明显的原因导致它,并且堆栈跟踪指向 Glide。请查看随附的 StackTrace。

任何帮助将不胜感激。

我们确实为以下类提供了自定义实现:

AppGlideModule
DataFetcher
ModelLoader

但是对于 URL 获取,我们使用 Glide 的GlideUrl默认值。

构建.gradle:

def glide_version = "4.11.0"
implementation "com.github.bumptech.glide:glide:$glide_version"
implementation "com.github.bumptech.glide:annotations:$glide_version"
kapt "com.github.bumptech.glide:compiler:$glide_version"

堆栈跟踪:

Fatal Exception: com.bumptech.glide.load.engine.cache.util.LicenseCheckError$LicenseServiceError: Error when calling licensing service
       at com.bumptech.glide.load.engine.cache.util.LicenseClient.callLicenseCheckV2Method(LicenseClient.java:136)
       at com.bumptech.glide.load.engine.cache.util.LicenseClient.checkLicenseInternal(LicenseClient.java:119)
       at com.bumptech.glide.load.engine.cache.util.LicenseClient$LicenseServiceConnection.onServiceConnected(LicenseClient.java:162)
       at android.app.LoadedApk$ServiceDispatcher.doConnected(LoadedApk.java:2037)
       at android.app.LoadedApk$ServiceDispatcher$RunConnection.run(LoadedApk.java:2069)
       at android.os.Handler.handleCallback(Handler.java:888)
       at android.os.Handler.dispatchMessage(Handler.java:100)
       at android.os.Looper.loop(Looper.java:213)
       at android.app.ActivityThread.main(ActivityThread.java:8178)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:513)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1101)
Caused by android.os.DeadObjectException
       at android.os.BinderProxy.transactNative(BinderProxy.java)
       at android.os.BinderProxy.transact(BinderProxy.java:526)
       at com.bumptech.glide.load.engine.cache.util.LicenseClient.callLicenseCheckV2Method(LicenseClient.java:129)
       at com.bumptech.glide.load.engine.cache.util.LicenseClient.checkLicenseInternal(LicenseClient.java:119)
       at com.bumptech.glide.load.engine.cache.util.LicenseClient$LicenseServiceConnection.onServiceConnected(LicenseClient.java:162)
       at android.app.LoadedApk$ServiceDispatcher.doConnected(LoadedApk.java:2037)
       at android.app.LoadedApk$ServiceDispatcher$RunConnection.run(LoadedApk.java:2069)
       at android.os.Handler.handleCallback(Handler.java:888)
       at android.os.Handler.dispatchMessage(Handler.java:100)
       at android.os.Looper.loop(Looper.java:213)
       at android.app.ActivityThread.main(ActivityThread.java:8178)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:513)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1101)

编辑:

这不是“常规” DeadObjectException,因为它来自尝试访问内部LicenseCheckError类的 Glide 库

4

0 回答 0