Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Huawei HMS Maps Android Codelab not working

I am trying to use the Huawei Maps Kit for the new devices that don't include Google Play Services. Codelab demo is located at:

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

I haven't changed any single line of code of the demo and the app has automacally downloaded Huawei Mobile Services version 3.0.3.300.

However, the map still does not appear.

Did you face the same problem?

I am getting this logs:

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
like image 352
Javier Delgado Avatar asked Jan 26 '20 14:01

Javier Delgado


Video Answer


2 Answers

Javier, I have just checked information in Huawei Developer web site https://developer.huawei.com/consumer/en/doc/development/HMS-Guides/hms-map-v4-abouttheservice. There is "Restrictions" section 3.1 and it is stated there that only for Huawei devices.

like image 112
KiraSb Avatar answered Oct 12 '22 09:10

KiraSb


Currently, HUAWEI Map Kit can only run and be used on Huawei phones. We are focusing on the decoupling now so that more capabilities can run on non-Huawei phones. For HMS Core capabilities that can run on non-Huawei phones, please refer to EMUI Version-Dependent Features. If Not supported is displayed in the Required Android Version (Non-Huawei Phones) column, the corresponding capability can only run on Huawei phones; if specific Android versions are displayed in this column, the corresponding capability can run on non-Huawei phones running such versions of Android systems.

like image 43
shirley Avatar answered Sep 28 '22 09:09

shirley