我正试图将华为地图套件用于不包括谷歌Play服务的新设备。Codelab演示位于:
https://developer.huawei.com/consumer/en/codelab/hmsmapkit/index.html#7
01-26 14:24:34.265 192 65-19265/com.wz.android.mapdemo W/DynamicModule:未能加载远程模块。
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
哈维尔,我刚刚在华为开发者网站https://Developer.Huawei.com/consumer/en/doc/development/hms-guides/hms-map-v4-abouttheservice查看了信息。第3.1节有“限制”,并声明仅适用于华为设备。
先谢谢你,克里斯
我已经遵循了这里和这里的文档(非常直接),但是map视图没有加载任何瓷砖。 我使用HMS工具包,配置向导的结果是成功的。我还设置了api密钥,在我的应用程序类和活动类onCreate中都使用了这一行。 setapikey(HUAWEI_API_KEY); null 相关错误日志: E/hmsmapkit_mapview_151:createDelegate:creator==null E/hmsm
有人能帮帮我吗?
我该怎么解决? logcat:
当Gradle在中工作正常时,我在Gradle中出现了这个错误 null 有关此问题的详细信息,请参阅https://docs.gradle.org/7.0/userguide/validation_problems.html#cannot_use_optional_on_primitive_types。
我目前正在开发一些地图应用程序,我想支持依赖HMS服务的华为手机。我已经设法实现了地图和标记,但我在地理编码坐标方面遇到了问题,使用google它的simple我们有,在HMS中我没有看到任何类似的东西,我一直在查看包,但看起来不应该使用这个包,我还看到他们确实有和,但在JS库中,android HMS地图库中没有这样的东西。