- 发布:2024-12-03 14:46
- 更新:2024-12-03 16:10
- 阅读:39
产品分类: uniapp/App
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: win11
HBuilderX类型: 正式
HBuilderX版本号: 4.36
手机系统: 全部
手机系统版本号: Android 15
手机厂商: 小米
手机机型: 小米14
页面类型: vue
vue版本: vue2
打包方式: 云端
项目创建方式: HBuilderX
测试过的手机:
操作步骤:
应用打开之后直接崩溃就会卡死或者崩溃,或者点登录的时候崩溃。抓取到的日志如上。
应用打开之后直接崩溃就会卡死或者崩溃,或者点登录的时候崩溃。抓取到的日志如上。
预期结果:
不卡死界面或者崩溃。
不卡死界面或者崩溃。
实际结果:
卡死界面或者崩溃。
卡死界面或者崩溃。
bug描述:
安卓插件版本:Android-SDK@4.36.82272_20241127
应用为安卓本地化插件,应用启动之后会卡死或者崩溃。错误日志:
12-03 11:24:23.683 D/nativeloader(12396): Load /data/app/~~x8tKy2NVhzQITpGiDC-jOA==/com.ctfojt.jgzst-eWGaPsMeE_NnyHKs8sgV5A==/lib/arm64/libbreakpad-core.so using ns clns-8 from class loader (caller=/data/app/~~x8tKy2NVhzQITpGiDC-jOA==/com.ctfojt.jgzst-eWGaPsMeE_NnyHKs8sgV5A==/base.apk): ok
12-03 11:24:23.684 I/platform(12396): ClassNotFoundException io.dcloud.common.cs.DL getInstance
12-03 11:24:23.684 I/SWAP_SCENE( 2615): Delete memcg fail.
12-03 11:24:23.685 W/System.err(12396): java.lang.NoSuchFieldException: UTSHooksClassArray
12-03 11:24:23.685 W/System.err(12396): at java.lang.Class.getField(Class.java:2337)
12-03 11:24:23.686 W/System.err(12396): at io.dcloud.uts.UTSAndroid.initUTSHooksClassArray(UTSAndroid.kt:992)
12-03 11:24:23.686 W/System.err(12396): at java.lang.reflect.Method.invoke(Native Method)
12-03 11:24:23.686 W/System.err(12396): at io.dcloud.common.util.AppRuntime.initUTSHooksClassArray(Unknown Source:14)
12-03 11:24:23.686 W/System.err(12396): at io.dcloud.weex.MoudlesLoader.initHooksClass(Unknown Source:49)
12-03 11:24:23.686 W/System.err(12396): at io.dcloud.feature.weex.WeexInstanceMgr.onCreateProcess(Unknown Source:4)
12-03 11:24:23.686 W/System.err(12396): at io.dcloud.common.util.AppRuntime.onCreateProcess(Unknown Source:7)
12-03 11:24:23.686 W/System.err(12396): at io.dcloud.application.DCLoudApplicationImpl.onCreate(Unknown Source:23)
12-03 11:24:23.686 W/System.err(12396): at io.dcloud.application.DCloudApplication.onCreate(Unknown Source:2)
12-03 11:24:23.686 W/System.err(12396): at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1399)
12-03 11:24:23.686 W/System.err(12396): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:8893)
12-03 11:24:23.686 W/System.err(12396): at android.app.ActivityThread.-$$Nest$mhandleBindApplication(Unknown Source:0)
12-03 11:24:23.686 W/System.err(12396): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:3075)
12-03 11:24:23.686 W/System.err(12396): at android.os.Handler.dispatchMessage(Handler.java:118)
12-03 11:24:23.686 W/System.err(12396): at android.os.Looper.loopOnce(Looper.java:237)
12-03 11:24:23.686 W/System.err(12396): at android.os.Looper.loop(Looper.java:325)
12-03 11:24:23.686 W/System.err(12396): at android.app.ActivityThread.main(ActivityThread.java:10274)
12-03 11:24:23.686 W/System.err(12396): at java.lang.reflect.Method.invoke(Native Method)
12-03 11:24:23.686 W/System.err(12396): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:635)
12-03 11:24:23.686 W/System.err(12396): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:957)
12-03 11:24:23.687 I/platform(12396): ClassNotFoundException io.dcloud.feature.weex.WeexDevtoolImpl registerReloadReceiver
12-03 11:24:23.688 I/platform(12396): ClassNotFoundException io.dcloud.feature.cf.cFeatureImpl handleEncryption
12-03 11:24:23.688 I/platform(12396): ClassNotFoundException io.dcloud.feature.cf.cFeatureImpl handleEncryption
12-03 11:24:23.690 I/platform(12396): ClassNotFoundException io.dcloud.feature.cf.cFeatureImpl handleEncryption
12-03 11:24:23.690 I/platform(12396): ClassNotFoundException io.dcloud.feature.weex.WeexDevtoolImpl initDebugEnvironment
或者:
12-03 14:27:22.207 W/Resources( 8785): Drawable com.ctfojt.jgzst:drawable/dcloud_circle_white_progress has unresolved theme attributes! Consider using Resources.getDrawable(int, Theme) or Context.getDrawable(int).
12-03 14:27:22.207 W/Resources( 8785): java.lang.RuntimeException
12-03 14:27:22.207 W/Resources( 8785): at android.content.res.Resources.getDrawable(Resources.java:1176)
12-03 14:27:22.207 W/Resources( 8785): at io.dcloud.feature.ui.nativeui.c.h(Unknown Source:14)
12-03 14:27:22.207 W/Resources( 8785): at io.dcloud.feature.ui.nativeui.c.a(Unknown Source:103)
12-03 14:27:22.207 W/Resources( 8785): at io.dcloud.feature.ui.nativeui.c.<init>(Unknown Source:57)
12-03 14:27:22.207 W/Resources( 8785): at io.dcloud.feature.ui.nativeui.NativeUIFeatureImpl.execute(Unknown Source:112)
12-03 14:27:22.207 W/Resources( 8785): at io.dcloud.g.b.a(Unknown Source:141)
12-03 14:27:22.207 W/Resources( 8785): at io.dcloud.g.b.b(Unknown Source:3)
12-03 14:27:22.207 W/Resources( 8785): at io.dcloud.g.b.processEvent(Unknown Source:174)
12-03 14:27:22.207 W/Resources( 8785): at io.dcloud.e.c.c.dispatchEvent(Unknown Source:22)
12-03 14:27:22.207 W/Resources( 8785): at io.dcloud.common.core.ui.l.processEvent(Unknown Source:2)
12-03 14:27:22.207 W/Resources( 8785): at io.dcloud.common.adapter.ui.AdaUniWebView.exec(Unknown Source:7)
12-03 14:27:22.207 W/Resources( 8785): at io.dcloud.common.adapter.ui.AdaUniWebView$1.execute(Unknown Source:5)
12-03 14:27:22.207 W/Resources( 8785): at io.dcloud.common.adapter.util.MessageHandler$1.handleMessage(Unknown Source:3)
12-03 14:27:22.207 W/Resources( 8785): at android.os.Handler.dispatchMessage(Handler.java:118)
12-03 14:27:22.207 W/Resources( 8785): at android.os.Looper.loopOnce(Looper.java:237)
12-03 14:27:22.207 W/Resources( 8785): at android.os.Looper.loop(Looper.java:325)
12-03 14:27:22.207 W/Resources( 8785): at android.app.ActivityThread.main(ActivityThread.java:10274)
12-03 14:27:22.207 W/Resources( 8785): at java.lang.reflect.Method.invoke(Native Method)
12-03 14:27:22.207 W/Resources( 8785): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:635)
12-03 14:27:22.207 W/Resources( 8785): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:957)
12-03 14:27:22.210 W/libc ( 8785): Access denied finding property "sys.use_pre_composite.switch"
12-03 14:27:22.210 I/ScreenShotSandBox( 8785): have secure:0
2 个回复
DCloud_Android_zl
报错日志都是警告日志,不是崩溃的原因。看一下还有没有其他的日志。
或者提供一下安装包我们这边试一下
1***@qq.com (作者)
您好!
1、上传apk好像存在问题,我这边上传到一半就直接显示一个红x,不管是apk或者打成zip都无法上传。我这边使用百度云测试截取了一些日志,麻烦可以看下。 2、我看RuntimeException 是运行时异常,这个应该会导致崩溃吧。
3、目前只有部分设备会崩溃,我这个崩溃的日志是 荣耀 Magic6 安卓 15的崩溃。