gpt4 book ai didi

android - 华为 HMS Maps Android Codelab 不工作

转载 作者:行者123 更新时间:2023-12-03 14:32:38 26 4
gpt4 key购买 nike

我正在尝试将华为 map 套件用于不包含 Google Play 服务的新设备。 Codelab 演示位于:

https://developer.huawei.com/consumer/en/codelab/HMSMapKit/index.html#7

我没有更改演示的任何单行代码,应用程序已自动下载华为移动服务版本 3.0.3.300。

但是, map 仍然没有出现。

你遇到过同样的问题吗?

我得到这个日志:
01-26 14:24:34.265 19265-19265/com.wz.android.mapdemo W/DynamicModule: Failed to load remote module.

01-26 14:24:34.256 19265-19265/com.wz.android.mapdemo D/HmsMapKit_MapView_183: onStart
01-26 14:24:34.257 19265-19265/com.wz.android.mapdemo I/HmsMapKit_MapCreator_48: Making Createor dynamically
01-26 14:24:34.257 19265-19265/com.wz.android.mapdemo I/DynamicModule: Local module huawei_module_maps:0
01-26 14:24:34.257 19265-19265/com.wz.android.mapdemo I/DynamicModule: Remote module huawei_module_maps:-100
01-26 14:24:34.259 19265-19265/com.wz.android.mapdemo W/DynamicModule: Failed to load remote module.
com.huawei.hms.feature.dynamic.DynamicModule$LoadingException: f*i*e* *o*l*a* *o*u*e
at com.huawei.hms.feature.dynamic.DynamicModule.a(Unknown Source)
at com.huawei.hms.feature.dynamic.DynamicModule.a(Unknown Source)
at com.huawei.hms.feature.dynamic.DynamicModule.load(Unknown Source)
at com.huawei.hms.maps.internal.MapCreator.getRemoteContext(MapCreator.java:97)
at com.huawei.hms.maps.internal.MapCreator.getRemoteMapContext(MapCreator.java:85)
at com.huawei.hms.maps.internal.MapCreator.getCreator(MapCreator.java:50)
at com.huawei.hms.maps.MapView$MapViewDeferredLifecycleHelper.createDelegate(MapView.java:241)
at com.huawei.hms.feature.dynamic.DeferredLifecycleHelper.a(Unknown Source)
at com.huawei.hms.feature.dynamic.DeferredLifecycleHelper.onStart(Unknown Source)
at com.huawei.hms.maps.MapView.onStart(MapView.java:184)
at com.wz.android.mapdemo.MainActivity.onStart(MainActivity.java:82)
at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1245)
at android.app.Activity.performStart(Activity.java:6330)
at android.app.Activity.performRestart(Activity.java:6376)
at android.app.Activity.performResume(Activity.java:6381)
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3310)
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3356)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1543)
at android.os.Handler.dispatchMessage(Handler.java:111)
at android.os.Looper.loop(Looper.java:207)
at android.app.ActivityThread.main(ActivityThread.java:5765)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:789)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:679)
01-26 14:24:34.259 19265-19265/com.wz.android.mapdemo E/HmsMapKit_MapCreator_99: getRemoteContext: DynamicModule load failedcom.huawei.hms.feature.dynamic.DynamicModule$LoadingException: failed to load Module
01-26 14:24:34.261 19265-19265/com.wz.android.mapdemo I/HmsMapKit_MapCreator_53: getRemoteMapContext failed
01-26 14:24:34.263 19265-19265/com.wz.android.mapdemo D/HmsMapKit_MapView_166: onResume
01-26 14:24:34.263 19265-19265/com.wz.android.mapdemo I/HmsMapKit_MapCreator_48: Making Createor dynamically
01-26 14:24:34.263 19265-19265/com.wz.android.mapdemo I/DynamicModule: Local module huawei_module_maps:0
01-26 14:24:34.264 19265-19265/com.wz.android.mapdemo I/DynamicModule: Remote module huawei_module_maps:-100
01-26 14:24:34.265 19265-19265/com.wz.android.mapdemo W/DynamicModule: Failed to load remote module.
com.huawei.hms.feature.dynamic.DynamicModule$LoadingException: f*i*e* *o*l*a* *o*u*e
at com.huawei.hms.feature.dynamic.DynamicModule.a(Unknown Source)
at com.huawei.hms.feature.dynamic.DynamicModule.a(Unknown Source)
at com.huawei.hms.feature.dynamic.DynamicModule.load(Unknown Source)
at com.huawei.hms.maps.internal.MapCreator.getRemoteContext(MapCreator.java:97)
at com.huawei.hms.maps.internal.MapCreator.getRemoteMapContext(MapCreator.java:85)
at com.huawei.hms.maps.internal.MapCreator.getCreator(MapCreator.java:50)
at com.huawei.hms.maps.MapView$MapViewDeferredLifecycleHelper.createDelegate(MapView.java:241)
at com.huawei.hms.feature.dynamic.DeferredLifecycleHelper.a(Unknown Source)
at com.huawei.hms.feature.dynamic.DeferredLifecycleHelper.onResume(Unknown Source)
at com.huawei.hms.maps.MapView.onResume(MapView.java:167)
at com.wz.android.mapdemo.MainActivity.onResume(MainActivity.java:133)
at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1268)
at android.app.Activity.performResume(Activity.java:6389)
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3310)
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3356)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1543)
at android.os.Handler.dispatchMessage(Handler.java:111)
at android.os.Looper.loop(Looper.java:207)
at android.app.ActivityThread.main(ActivityThread.java:5765)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:789)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:679)
01-26 14:24:34.265 19265-19265/com.wz.android.mapdemo E/HmsMapKit_MapCreator_99: getRemoteContext: DynamicModule load failedcom.huawei.hms.feature.dynamic.DynamicModule$LoadingException: failed to load Module
01-26 14:24:34.267 19265-19265/com.wz.android.mapdemo I/HmsMapKit_MapCreator_53: getRemoteMapContext failed

最佳答案

Javier,我刚刚在华为开发者网站查看了信息https://developer.huawei.com/consumer/en/doc/development/HMS-Guides/hms-map-v4-abouttheservice .有“限制”第 3.1 节,其中声明仅适用于华为设备。

关于android - 华为 HMS Maps Android Codelab 不工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59919261/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com