dClass中获取怪异的ClassNotFoundExcepti

dClass中获取怪异的ClassNotFoundExcepti

本文介绍了在ac.loadClass中获取怪异的ClassNotFoundException的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Google Play上有一个正在运行的应用。我的用户经常遇到崩溃,我无法找出调试的地方。

I have an active app on Google Play. My users are often experiencing a crash that I can't figure out where to debug.

java.lang.NoClassDefFoundError:
  at jl.b (jl.java:3)
  at jk.a (jk.java:3)
  at jm.a (jm.java:18)
  at com.google.android.gms.ads.internal.util.ap.a (ap.java:17)
  at ip.a (ip.java:19)
  at ip.run (ip.java:8)
Caused by: java.lang.ClassNotFoundException:
  at dalvik.system.BaseDexClassLoader.findClass (BaseDexClassLoader.java:134)
  at java.lang.ClassLoader.loadClass (ClassLoader.java:379)
  at ac.loadClass (ac.java:4)
  at java.lang.ClassLoader.loadClass (ClassLoader.java:312)
  at jl.b (jl.java:3)
  at jk.a (jk.java:3)
  at jm.a (jm.java:18)
  at com.google.android.gms.ads.internal.util.ap.a (ap.java:17)
  at ip.a (ip.java:19)
  at ip.run (ip.java:8)

最后一部分让我认为它与AdMob相关

The last portion makes me think it's related to AdMob

at com.google.android.gms.ads.internal.util.ap.a (ap.java:17)

但我不知道问题到底在哪里。我的测试设备上的所有功能似乎都不错,但是其他用户仍然遇到了这些崩溃。

But I can't figure out where's exactly the problem. Everything on my test devices seem to be fine, but still other users are experiencing these crashes.

我已经上传了去混淆器文件,但是这些堆栈跟踪信息全都是

I've uploaded the de-obfuscator file, but these stack traces are all obfuscated.

我目前正在使用播放服务广告的16.0.0版本

I'm currently using the version 16.0.0 of play services ads

implementation 'com.google.android.gms:play-services-ads:16.0.0'


推荐答案

在我们等待Google正式解决此问题时,似乎有一个临时解决方法。地图库也受到影响。

It appears there's a temporary workaround while we wait for this to be officially fixed from Google. Maps library is also affected.

只需将此标签放入清单文件中即可:

Just put this tag into the Manifest file:

<uses-library
      android:name="org.apache.http.legacy"
      android:required="false" />

我尝试过,它似乎正在工作。我将其标记为答案,但当有正式补丁可用时,我将更新此帖子。

I tried it and it appears to be working. I'm going to mark this as an answer but I'll update this post when an official fix will be available.

这篇关于在ac.loadClass中获取怪异的ClassNotFoundException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-30 12:56