Flutter开发HarmonyOS鸿蒙Next应用的时候打出来的app包上应用市场审核提示闪退

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

Flutter开发HarmonyOS鸿蒙Next应用的时候打出来的app包上应用市场审核提示闪退
#00 pc 000000000019ae64 /system/lib/ld-musl-aarch64.so.1(raise+228)(d5b76baa99ba06954102a652a0763097)

#01 pc 00000000001482b0 /system/lib/ld-musl-aarch64.so.1(abort+20)(d5b76baa99ba06954102a652a0763097)

#02 pc 00000000032cd330 /data/storage/el1/bundle/libs/arm64/libflutter.so(21f0996c54e8fc72427f04119eb9b4536f6a9442)

#03 pc 00000000034caa5c /data/storage/el1/bundle/libs/arm64/libflutter.so(21f0996c54e8fc72427f04119eb9b4536f6a9442)

#04 pc 00000000033d7e40 /data/storage/el1/bundle/libs/arm64/libflutter.so(21f0996c54e8fc72427f04119eb9b4536f6a9442)

#05 pc 00000000033d8068 /data/storage/el1/bundle/libs/arm64/libflutter.so(21f0996c54e8fc72427f04119eb9b4536f6a9442)

#06 pc 00000000034aaf6c /data/storage/el1/bundle/libs/arm64/libflutter.so(21f0996c54e8fc72427f04119eb9b4536f6a9442)

#07 pc 00000000034aae34 /data/storage/el1/bundle/libs/arm64/libflutter.so(21f0996c54e8fc72427f04119eb9b4536f6a9442)

#08 pc 000000000332fddc /data/storage/el1/bundle/libs/arm64/libflutter.so(21f0996c54e8fc72427f04119eb9b4536f6a9442)

#09 pc 000000000333003c /data/storage/el1/bundle/libs/arm64/libflutter.so(21f0996c54e8fc72427f04119eb9b4536f6a9442)

#10 pc 000000000318b258 /data/storage/el1/bundle/libs/arm64/libflutter.so(21f0996c54e8fc72427f04119eb9b4536f6a9442)

#11 pc 0000000003186550 /data/storage/el1/bundle/libs/arm64/libflutter.so(21f0996c54e8fc72427f04119eb9b4536f6a9442)

#12 pc 0000000003185b0c /data/storage/el1/bundle/libs/arm64/libflutter.so(21f0996c54e8fc72427f04119eb9b4536f6a9442)

#13 pc 000000000318bdf0 /data/storage/el1/bundle/libs/arm64/libflutter.so(21f0996c54e8fc72427f04119eb9b4536f6a9442)

#14 pc 0000000002c28e30 /data/storage/el1/bundle/libs/arm64/libflutter.so(21f0996c54e8fc72427f04119eb9b4536f6a9442)

#15 pc 0000000001a1dcac /data/storage/el1/bundle/libs/arm64/libflutter.so(21f0996c54e8fc72427f04119eb9b4536f6a9442)

#16 pc 0000000001a12910 /data/storage/el1/bundle/libs/arm64/libflutter.so(21f0996c54e8fc72427f04119eb9b4536f6a9442)

#17 pc 0000000001a09c7c /data/storage/el1/bundle/libs/arm64/libflutter.so(21f0996c54e8fc72427f04119eb9b4536f6a9442)

#18 pc 0000000000038e88 /system/lib64/platformsdk/libace_napi.z.so(panda::JSValueRef ArkNativeFunctionCallBack<true>(panda::JsiRuntimeCallInfo*)+216)(f8de336314fd2eabe074eaa3d4a4b047)

#19 pc 00000000003412f0 /system/lib64/module/arkcompiler/stub.an(RTStub_PushCallArgsAndDispatchNative+40)

#20 at attachToNative (entry|@ohos/flutter_ohos|1.0.0-115ba6b8be|src/main/ets/embedding/engine/FlutterNapi.ts:60:1)

#21 at attachToNapi (entry|@ohos/flutter_ohos|1.0.0-115ba6b8be|src/main/ets/embedding/engine/FlutterEngine.ts:97:1)

#22 at init (entry|@ohos/flutter_ohos|1.0.0-115ba6b8be|src/main/ets/embedding/engine/FlutterEngine.ts:88:1)

#23 pc 0000000000325d68 /system/lib64/platformsdk/libark_jsruntime.so(panda::ecmascript::InterpreterAssembly::GeneratorReEnterInterpreter(panda::ecmascript::JSThread*, panda::ecmascript::JSHandlepanda::ecmascript::GeneratorContext)+104)(940bfe794b53b19bd172f8ce59d6349d)

#24 pc 000000000035e510 /system/lib64/platformsdk/libark_jsruntime.so(panda::ecmascript::EcmaInterpreter::GeneratorReEnterInterpreter(panda::ecmascript::JSThread*, panda::ecmascript::JSHandlepanda::ecmascript::GeneratorContext)+240)(940bfe794b53b19bd172f8ce59d6349d)

#25 pc 0000000000318c4c /system/lib64/platformsdk/libark_jsruntime.so(panda::ecmascript::GeneratorHelper::Next(panda::ecmascript::JSThread*, panda::ecmascript::JSHandlepanda::ecmascript::GeneratorContext const&, panda::ecmascript::JSTaggedValue)+156)(940bfe794b53b19bd172f8ce59d6349d)

#26 pc 00000000003d745c /system/lib64/platformsdk/libark_jsruntime.so(940bfe794b53b19bd172f8ce59d6349d)

#27 pc 0000000000215e08 /system/lib64/platformsdk/libark_jsruntime.so(panda::ecmascript::builtins::BuiltinsPromiseHandler::AsyncAwaitFulfilled(panda::ecmascript::EcmaRuntimeCallInfo*)+112)(940bfe794b53b19bd172f8ce59d6349d)

#28 pc 0000000000340f34 /system/lib64/module/arkcompiler/stub.an(RTStub_AsmInterpreterEntry+208)

#29 pc 0000000000325ae0 /system/lib64/platformsdk/libark_jsruntime.so(panda::ecmascript::InterpreterAssembly::Execute(panda::ecmascript::EcmaRuntimeCallInfo*)+280)(940bfe794b53b19bd172f8ce59d6349d)

#30 pc 0000000000217470 /system/lib64/platformsdk/libark_jsruntime.so(panda::ecmascript::builtins::BuiltinsPromiseJob::PromiseReactionJob(panda::ecmascript::EcmaRuntimeCallInfo*)+344)(940bfe794b53b19bd172f8ce59d6349d)

#31 pc 0000000000340f34 /system/lib64/module/arkcompiler/stub.an(RTStub_AsmInterpreterEntry+208)

#32 pc 0000000000325ae0 /system/lib64/platformsdk/libark_jsruntime.so(panda::ecmascript::InterpreterAssembly::Execute(panda::ecmascript::EcmaRuntimeCallInfo*)+280)(940bfe794b53b19bd172f8ce59d6349d)

#33 pc 0000000000386efc /system/lib64/platformsdk/libark_jsruntime.so(panda::ecmascript::job::PendingJob::ExecutePendingJob(panda::ecmascript::JSHandlepanda::ecmascript::job::PendingJob const&, panda::ecmascript::JSThread*)+284)(940bfe794b53b19bd172f8ce59d6349d)

#34 pc 0000000000386a2c /system/lib64/platformsdk/libark_jsruntime.so(panda::ecmascript::job::MicroJobQueue::ExecutePendingJob(panda::ecmascript::JSThread*, panda::ecmascript::JSHandlepanda::ecmascript::job::MicroJobQueue)+424)(940bfe794b53b19bd172f8ce59d6349d)

#35 pc 00000000002f6b0c /system/lib64/platformsdk/libark_jsruntime.so(panda::ecmascript::EcmaContext::ExecutePromisePendingJob()+92)(940bfe794b53b19bd172f8ce59d6349d)

#36 pc 00000000004d6c94 /system/lib64/platformsdk/libark_jsruntime.so(panda::PromiseCapabilityRef::Resolve(panda::ecmascript::EcmaVM const*, unsigned long)+256)(940bfe794b53b19bd172f8ce59d6349d)

#37 pc 0000000000059e28 /system/lib64/platformsdk/libace_napi.z.so(napi_resolve_deferred+120)(f8de336314fd2eabe074eaa3d4a4b047)

#38 pc 000000000001b524 /system/lib64/module/bundle/libbundlemanager.z.so(void OHOS::AppExecFwk::CommonFunc::NapiReturnDeferredOHOS::AppExecFwk::GetBundleArchiveInfoCallbackInfo(napi_env__, OHOS::AppExecFwk::GetBundleArchiveInfoCallbackInfo, napi_value__**, unsigned long)+280)(e801f8472f2c779da1f35246fb79d605)

#39 pc 000000000003ab7c /system/lib64/module/bundle/libbundlemanager.z.so(OHOS::AppExecFwk::GetBundleInfoComplete(napi_env__, napi_status, void)+408)(e801f8472f2c779da1f35246fb79d605)

#40 pc 000000000005f194 /system/lib64/platformsdk/libace_napi.z.so(NativeAsyncWork::AsyncAfterWorkCallback(uv_work_s*, int)+484)(f8de336314fd2eabe074eaa3d4a4b047)

#41 pc 000000000007c530 /system/lib64/platformsdk/libruntime.z.so(2cabbf65e09076b81cd1a48f03c39125)

#42 pc 000000000001ae78 /system/lib64/chipset-pub-sdk/libeventhandler.z.so(OHOS::AppExecFwk::EventHandler::DistributeEvent(std::__h::unique_ptr<OHOS::AppExecFwk::InnerEvent, void ()(OHOS::AppExecFwk::InnerEvent)> const&)+1164)(82e01c287191b3f8e8e81aa69c0565cc)

#43 pc 000000000002bb74 /system/lib64/chipset-pub-sdk/libeventhandler.z.so(OHOS::AppExecFwk::(anonymous namespace)::EventRunnerImpl::ExecuteEventHandler(std::__h::unique_ptr<OHOS::AppExecFwk::InnerEvent, void ()(OHOS::AppExecFwk::InnerEvent)>&)+348)(82e01c287191b3f8e8e81aa69c0565cc)

#44 pc 000000000002b44c /system/lib64/chipset-pub-sdk/libeventhandler.z.so(OHOS::AppExecFwk::(anonymous namespace)::EventRunnerImpl::Run()+880)(82e01c287191b3f8e8e81aa69c0565cc)

#45 pc 000000000002e7ec /system/lib64/chipset-pub-sdk/libeventhandler.z.so(OHOS::AppExecFwk::EventRunner::Run()+524)(82e01c287191b3f8e8e81aa69c0565cc)

#46 pc 00000000000b1f40 /system/lib64/platformsdk/libappkit_native.z.so(OHOS::AppExecFwk::MainThread::Start()+616)(a76f9d6a27f0e535de0ee822680e9741)

#47 pc 0000000000004e28 /system/lib64/appspawn/appspawn/libappspawn_ace.z.so(RunChildProcessor(AppSpawnContent*, AppSpawnClient*)+568)(4159caf69e8c0e21f1d17ada9e1edafd)

#48 pc 000000000000a8b4 /system/bin/appspawn(AppSpawnChild+484)(19a38dbe16782f907b9309c1c1e0897a)

#49 pc 000000000000a5a4 /system/bin/appspawn(AppSpawnProcessMsg+688)(19a38dbe16782f907b9309c1c1e0897a)

#50 pc 0000000000012004 /system/bin/appspawn(ProcessSpawnReqMsg+228)(19a38dbe16782f907b9309c1c1e0897a)

#51 pc 0000000000011624 /system/bin/appspawn(OnReceiveRequest+172)(19a38dbe16782f907b9309c1c1e0897a)

#52 pc 00000000000167f0 /system/lib64/chipset-pub-sdk/libbegetutil.z.so(HandleRecvMsg_+292)(61f37201a154443bd642c1d3d19c7cf7)

#53 pc 00000000000162f0 /system/lib64/chipset-pub-sdk/libbegetutil.z.so(HandleStreamEvent_+172)(61f37201a154443bd642c1d3d19c7cf7)

#54 pc 00000000000139c8 /system/lib64/chipset-pub-sdk/libbegetutil.z.so(ProcessEvent+108)(61f37201a154443bd642c1d3d19c7cf7)

#55 pc 0000000000013588 /system/lib64/chipset-pub-sdk/libbegetutil.z.so(RunLoop_+356)(61f37201a154443bd642c1d3d19c7cf7)

#56 pc 000000000000f7ac /system/bin/appspawn(AppSpawnRun+136)(19a38dbe16782f907b9309c1c1e0897a)

#57 pc 000000000000d138 /system/bin/appspawn(main+744)(19a38dbe16782f907b9309c1c1e0897a)

#58 pc 00000000000a0a14 /system/lib/ld-musl-aarch64.so.1(libc_start_main_stage2+64)(d5b76baa99ba06954102a652a0763097)

3 回复

通过应用尝鲜下载下来的测试版本闪退吗

上线包使用了debug版本的flutter.har或出现这个报错。 建议打包上线前先运行一次命令 flutter build hap --release 。

针对Flutter开发HarmonyOS鸿蒙Next应用时打出的app包上应用市场审核提示闪退的问题,以下是一些可能的解决方案:

  1. 检查代码和依赖:确保所有代码均经过充分测试,无逻辑错误或内存泄漏。同时,检查pubspec.yaml文件,确保已正确添加了对flutter-ohos或其相关插件的依赖,并运行flutter pub get来更新依赖。
  2. 重新编译和打包:使用flutter build hapflutter build hap --debug命令重新编译项目,确保生成的HAP包是最新版本且无误。
  3. 查看日志:应用上架前,应使用鸿蒙开发者工具或ADB命令获取详细的错误日志,分析堆栈跟踪以确定问题发生的位置和原因。
  4. 设备兼容性:确保应用在目标设备上进行了充分的测试,包括不同型号和版本的鸿蒙设备。

如果以上方法均无法解决问题,建议仔细检查应用的市场审核反馈,看是否有更具体的错误信息或建议。如果问题依旧没法解决请联系官网客服,官网地址是:https://www.itying.com/category-93-b0.html

回到顶部