安卓离线打包 3.1.11 的 SDK,我重新下载了SDK 包,发现与之前的 SDK 包中发生变化的文件很多,按照文档升级了 SDK 后,报错:
/AndroidRuntime: FATAL EXCEPTION: pool-21-thread-1
Process: com.kunpeng.babyting, PID: 12606
java.lang.NoSuchMethodError: No static method commitTid(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;)V in class Lio/dcloud/common/util/TestUtil$PointTime; or its super classes (declaration of 'io.dcloud.common.util.TestUtil$PointTime' appears in /data/app/com.kunpeng.babyting-oEdID0BWZiCB-kwFqQdqIw==/base.apk!classes4.dex)
at io.dcloud.feature.ad.gdt.AdGdtHandler$3.run(AdGdtHandler.java:239)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:929)
只要一展示广告,包括闪屏广告,页面内广告位,都会立刻闪退
安卓系统:任何版本的安卓都一样
5 个回复
左uncle (作者)
此版本修复的 bug 中,有涉及华为渠道审核要求的部分,请官方尽快解决啊!!!!
左uncle (作者)
升级到 uni-app 3.1.12版本,继续崩溃:
--------- beginning of crash
2021-04-30 11:26:37.023 29988-29988/com.kunpeng.babyting E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.kunpeng.babyting, PID: 29988
java.lang.UnsatisfiedLinkError: No implementation found for void io.dcloud.common.cs.DA.arn(java.lang.String, java.lang.Object) (tried Java_io_dcloud_common_cs_DA_arn and Java_io_dcloud_common_cs_DA_arn__Ljava_lang_String_2Ljava_lang_Object_2)
at io.dcloud.common.cs.DA.arn(Native Method)
at io.dcloud.common.cs.DA.ar(DA.java:50)
at io.dcloud.feature.ad.dcloud.ADHandler.pull(SourceFile:21)
at io.dcloud.feature.ad.dcloud.AdFeatureImpl.doForFeature(SourceFile:62)
at io.dcloud.feature.ad.AdFeatureImplMgr.doForFeature(SourceFile:6)
at io.dcloud.a.a(SourceFile:13)
at io.dcloud.b.checkAndRequestStoragePermission(SourceFile:27)
at io.dcloud.WebAppActivity.checkAndRequestStoragePermission(SourceFile:1)
at io.dcloud.b$b.onClick(SourceFile:1)
at com.android.internal.app.AlertController$ButtonHandler.handleMessage(AlertController.java:177)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:213)
at android.app.ActivityThread.main(ActivityThread.java:8178)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:513)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1101)
左uncle (作者)
继续,升级了 3.1.14alpha 版本后,崩溃依旧
FATAL EXCEPTION: pool-20-thread-1
Process: , PID: 30122
java.lang.NoSuchMethodError: No static method commitTid(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;)V in class Lio/dcloud/common/util/TestUtil$PointTime; or its super classes (declaration of 'io.dcloud.common.util.TestUtil$PointTime' appears in /data/app/com.kunpeng.babyting-7ZrtF5oOBxpJGTQfsLuUjg==/base.apk!classes4.dex)
at io.dcloud.feature.ad.gdt.AdGdtHandler$3.run(AdGdtHandler.java:239)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:929)
DCloud_Android_zl
离线sdk重新提交了,麻烦重新下载试一下
左uncle (作者)
官方已解决,升级到 3.1.12 版本即可