HarmonyOS 鸿蒙Next高德地图第三方库@react-native-oh-tpl/react-native-amap3d在Release环境会闪退

发布于 1周前 作者 sinazl 来自 鸿蒙OS

HarmonyOS 鸿蒙Next高德地图第三方库@react-native-oh-tpl/react-native-amap3d在Release环境会闪退

使用了高德地图第三方库@react-native-oh-tpl/react-native-amap3d时在Release环境使用时闪退,日志如下:

 Fingerprint:442c1e32004f28579e4a5d4bc792d09371cbee18be54c1e7351c9a0c614ac138 Module name:com.rwxkm.kmsz Version:1.0.0 VersionCode:1000000 PreInstalled:No Foreground:Yes Pid:13547 Uid:20020039 Reason:Error Error name:Error Error message:Failed to get value type Stacktrace: Cannot get SourceMap info, dump raw stack: #00 pc 00000000005fcc0c /system/lib64/platformsdk/libark_jsruntime.so(5144aa99644b9dba57555adfb9e0ede6) #01 pc 00000000005fd128 /system/lib64/platformsdk/libark_jsruntime.so(5144aa99644b9dba57555adfb9e0ede6) #02 pc 00000000002ac540 /system/lib64/platformsdk/libark_jsruntime.so(5144aa99644b9dba57555adfb9e0ede6) #03 pc 0000000000168ee8 /system/lib64/platformsdk/libark_jsruntime.so(5144aa99644b9dba57555adfb9e0ede6) #04 pc 0000000000168a84 /system/lib64/platformsdk/libark_jsruntime.so(5144aa99644b9dba57555adfb9e0ede6) #05 pc 00000000001e7ef8 /system/lib64/platformsdk/libark_jsruntime.so(5144aa99644b9dba57555adfb9e0ede6) #06 pc 0000000000505f8c /system/lib64/platformsdk/libark_jsruntime.so(5144aa99644b9dba57555adfb9e0ede6) #07 pc 00000000004dec48 /system/lib64/platformsdk/libark_jsruntime.so(5144aa99644b9dba57555adfb9e0ede6) #08 pc 000000000004e600 /system/lib64/platformsdk/libace_napi.z.so(6779dd4ef7e9390dd07f2d2d2a2dd749) #09 pc 000000000023e7ec /data/storage/el1/bundle/libs/arm64/librnoh.so(26e176f485e2027c80a9a81194f8fbc43ad17327) #10 pc 000000000023e998 /data/storage/el1/bundle/libs/arm64/librnoh.so(26e176f485e2027c80a9a81194f8fbc43ad17327) #11 pc 000000000024c140 /data/storage/el1/bundle/libs/arm64/librnoh.so(26e176f485e2027c80a9a81194f8fbc43ad17327) #12 pc 0000000000261208 /data/storage/el1/bundle/libs/arm64/librnoh.so(26e176f485e2027c80a9a81194f8fbc43ad17327) #13 pc 0000000000262954 /data/storage/el1/bundle/libs/arm64/librnoh.so(26e176f485e2027c80a9a81194f8fbc43ad17327) #14 pc 0000000000262408 /data/storage/el1/bundle/libs/arm64/librnoh.so(26e176f485e2027c80a9a81194f8fbc43ad17327) #15 pc 0000000000015a10 /system/lib64/platformsdk/libuv.so(8dbdad467aee3af51af3ef6bbc33235f)

2 回复
把代码混淆关了,再重新在Release环境下运行,看是否还有闪退现象。在build-profile.json5文件中将ruleOptions 的enable 属性配置为false ,参考:https://developer.huawei.com/consumer/cn/doc/harmonyos-guides-V5/source-obfuscation-V5#%E5%BC%80%E5%90%AF%E4%BB%A3%E7%A0%81%E6%B7%B7%E6%B7%86

针对HarmonyOS 鸿蒙Next高德地图第三方库@react-native-oh-tpl/react-native-amap3d在Release环境闪退的问题,这通常是由于多种潜在因素导致的。以下是一些可能的解决方案,但鉴于具体情况可能有所不同,以下建议仅供参考:

  1. 检查依赖关系:确保所有相关的依赖库都已正确安装,并且版本兼容。特别是react-native-oh-tpl/react-native-amap3d与HarmonyOS的版本匹配。
  2. 配置检查:仔细检查项目的配置文件,如AndroidManifest.xml(或对应HarmonyOS的配置文件),确保所有必要的权限和配置都已正确设置。
  3. 代码优化:检查代码中是否存在内存泄漏或其他性能问题,这些问题在Release环境下可能更加显著。
  4. 查看日志:通过查看系统日志或应用日志,获取更多关于闪退的详细信息,以便定位问题。

如果上述方法仍无法解决问题,建议直接联系官方技术支持或访问官网客服。官网地址是:https://www.itying.com/category-93-b0.html

回到顶部