简体   繁体   English

Flutter HMS核心插件集成错误

[英]Flutter HMS Core Plugin Integration Error

I am using HMS Core plugin(Huawei Location Kit) in my application, everything works fine in debug mode, but when I switch it on release mode, it is throwing the following error even though I can access to the Huawei Location Kit normally:我在我的应用程序中使用了HMS Core插件(华为定位工具包),在调试模式下一切正常,但是当我将它切换到发布模式时,即使我可以正常访问华为定位工具包,它也会抛出以下错误:

E/flutter (28815): [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: PlatformException(-5, -5: Core error, null) E/flutter (28815): Warning: This VM has been configured to produce stack traces that violate the Dart standard.

I have no idea what might be causing the problem.我不知道可能导致问题的原因。 Any ideas?有任何想法吗?

Can you check if you have added SHA in AppGallery Console correctly.您能否检查您是否在 AppGallery 控制台中正确添加了 SHA。

Please check if your json file is in correct place inside app folder.请检查您的 json 文件是否在 app 文件夹内的正确位置。

And please exclude the HMS SDK from obfuscation.并且请从混淆中排除 HMS SDK。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM