Coder Social home page Coder Social logo

hms-core / hms-mapkit-demo Goto Github PK

View Code? Open in Web Editor NEW
114.0 15.0 42.0 11.7 MB

HMS Map Kit demo provides an example of intergrating HMS Map Android SDK. Personalizing how your map displays and interacts with your users tailors their experience to them

Home Page: https://developer.huawei.com/consumer/en/hms/huawei-MapKit?ha_source=hms1

License: Apache License 2.0

Java 56.45% Kotlin 39.02% Objective-C 4.53%
hms huawei map marker route java android

hms-mapkit-demo's Introduction

HMS Core Map Kit Sample Code

Apache-2.0

English | 中文

Contents

Introduction

Map Kit allows you to customize your map display and the way for users to interact with your map, tailoring map use experience for your users. This can make location-based services in your app work better, empowering users to better use your app.

Map Kit uses the WGS 84 GPS coordinate system, which meets most map development requirements outside China, including:

  • Map display: Displays buildings, roads, water systems, Points of Interest (POIs), and others.
  • Map interaction: Controls the interaction gestures and buttons on the map.
  • Map drawing: Adds location markers, map layers, overlays, various shapes, and others.

You can also use HMS Toolkit to quickly run the sample code. HMS Toolkit supports one-stop kit integration, and provides functions such as free app debugging on remote real devices. To learn more about HMS Toolkit, please refer to the HMS Toolkit documentation.

Preparations

The sample code is built using Gradle to demonstrate how to use the Map SDK for Android.

First, download the sample code by cloning this repository or downloading the compressed package.

In Android Studio, click Open an existing Android Studio project and select the directory where the map-sample file is located.

You can use the gradlew build command to directly build the project.

Then, you need to create an app in AppGallery Connect, obtain the agconnect-services.json file, and add it to the project. You also need to generate a signing certificate fingerprint, add the signing certificate file to the project, and add related configurations to the build.gradle file. For details, please refer to Configuring App Information in AppGallery Connect.

To learn more, refer to the following documents:

Environment Requirements

It is recommended that the Android SDK version be 19 or later, and the JDK version be 1.8 or later.

Result

Technical Support

You can visit the Reddit community to obtain the latest information about HMS Core and communicate with other developers.

If you have any questions about the sample code, try the following:

  • Visit Stack Overflow, submit your questions, and tag them with huawei-mobile-services. Huawei experts will answer your questions.
  • Visit the HMS Core section in the HUAWEI Developer Forum and communicate with other developers.

If you encounter any issues when using the sample code, submit your issues or submit a pull request.

License

The sample code is licensed under Apache License 2.0.

hms-mapkit-demo's People

Contributors

liangfu123 avatar lovehuaweimaps avatar mike-mei avatar xuejiao-shi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hms-mapkit-demo's Issues

App crashes on orientation change (NullPointerException: Attempt to invoke virtual method 'android.content.res.Resources android.content.Context.getResources()' on a null object reference)

Steps to reproduce:

  1. Open demo app
  2. On main page click on "LocationSourceDemo" and rapidly rotate the screen (before map gets to be created on next screen, you have to almost simultaneously click on button and rotate the screen)
  3. App crashes with following stack trace:

2020-07-02 12:46:29.841 21933-21933/com.huawei.hms.maps.sample E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.huawei.hms.maps.sample, PID: 21933
java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.Resources android.content.Context.getResources()' on a null object reference
at android.view.ViewConfiguration.get(ViewConfiguration.java:447)
at android.view.View.(View.java:4850)
at android.view.View.(View.java:4992)
at android.widget.ImageView.(ImageView.java:198)
at android.widget.ImageView.(ImageView.java:193)
at com.huawei.map.utils.ao.(:52)
at com.huawei.map.utils.ah.n(:194)
at com.huawei.map.utils.ah.g(:670)
at com.huawei.map.utils.v.a(:513)
at com.huawei.map.mapapi.HWMap.setLocationSource(:437)
at com.huawei.hms.maps.provider.huawei.e.c(:1930)
at com.huawei.hms.maps.internal.d$d.onTransact(:628)
at android.os.Binder.transact(Binder.java:675)
at com.huawei.hms.maps.internal.IHuaweiMapDelegate$Stub$Proxy.setLocationSource(IHuaweiMapDelegate.java:1730)
at com.huawei.hms.maps.HuaweiMap.setLocationSource(HuaweiMap.java:1319)
at com.huawei.hms.maps.sample.LocationSourceDemoActivity.onMapReady(LocationSourceDemoActivity.java:119)
at com.huawei.hms.maps.SupportMapFragment$SupportMapFragmentLifecycleDelegate$1.onMapReady(SupportMapFragment.java:525)
at com.huawei.hms.maps.internal.IOnMapReadyCallback$Stub.onTransact(IOnMapReadyCallback.java:51)
at android.os.Binder.transact(Binder.java:675)
at com.huawei.hms.maps.internal.x$b$d.e(:87)
at com.huawei.hms.maps.provider.huawei.SupportMapFragmentImpl$4.onMapReady(:206)
at com.huawei.map.mapapi.SupportMapFragment$HWOnMapReadyCallback$1.run(:234)
at android.os.Handler.handleCallback(Handler.java:907)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:216)
at android.app.ActivityThread.main(ActivityThread.java:7625)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:524)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:987)
2020-07-02 12:46:29.842 21933-21933/com.huawei.hms.maps.sample E/HmsMapKit_CrashHandler_79: uncaughtException stacktrace is java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.Resources android.content.Context.getResources()' on a null object reference
at android.view.ViewConfiguration.get(ViewConfiguration.java:447)
at android.view.View.(View.java:4850)
at android.view.View.(View.java:4992)
at android.widget.ImageView.(ImageView.java:198)
at android.widget.ImageView.(ImageView.java:193)
at com.huawei.map.utils.ao.(:52)
at com.huawei.map.utils.ah.n(:194)
at com.huawei.map.utils.ah.g(:670)
at com.huawei.map.utils.v.a(:513)
at com.huawei.map.mapapi.HWMap.setLocationSource(:437)
at com.huawei.hms.maps.provider.huawei.e.c(:1930)
at com.huawei.hms.maps.internal.d$d.onTransact(:628)
at android.os.Binder.transact(Binder.java:675)
at com.huawei.hms.maps.internal.IHuaweiMapDelegate$Stub$Proxy.setLocationSource(IHuaweiMapDelegate.java:1730)
at com.huawei.hms.maps.HuaweiMap.setLocationSource(HuaweiMap.java:1319)
at com.huawei.hms.maps.sample.LocationSourceDemoActivity.onMapReady(LocationSourceDemoActivity.java:119)
at com.huawei.hms.maps.SupportMapFragment$SupportMapFragmentLifecycleDelegate$1.onMapReady(SupportMapFragment.java:525)
at com.huawei.hms.maps.internal.IOnMapReadyCallback$Stub.onTransact(IOnMapReadyCallback.java:51)
at android.os.Binder.transact(Binder.java:675)
at com.huawei.hms.maps.internal.x$b$d.e(:87)
at com.huawei.hms.maps.provider.huawei.SupportMapFragmentImpl$4.onMapReady(:206)
at com.huawei.map.mapapi.SupportMapFragment$HWOnMapReadyCallback$1.run(:234)
at android.os.Handler.handleCallback(Handler.java:907)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:216)
at android.app.ActivityThread.main(ActivityThread.java:7625)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:524)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:987)

There is a memory leak on the map.

eg:

┬───
│ GC Root: System class

├─ android.os.Parcel class
│ Leaking: NO (e↓ is not leaking and a class is never leaking)
│ ↓ static Parcel.mCreators
├─ java.util.HashMap instance
│ Leaking: NO (e↓ is not leaking)
│ ↓ HashMap[key()]
├─ com.huawei.hms.dynamicloader.e instance
│ Leaking: NO (mab↓ is not leaking and A ClassLoader is never leaking)
│ ↓ ClassLoader.runtimeInternalObjects
├─ java.lang.Object[] array
│ Leaking: NO (mab↓ is not leaking)
│ ↓ Object[1415]
├─ com.huawei.hms.maps.mab class
│ Leaking: NO (a class is never leaking)
│ ↓ static mab.a
│ ~
╰→ com.huawei.hms.maps.sample.MapFunctionsDemoActivity instance
​ Leaking: YES (ObjectWatcher was watching this because com.huawei.hms.maps.sample.MapFunctionsDemoActivity
​ received Activity#onDestroy() callback and Activity#mDestroyed is true)
​ Retaining 927.9 kB in 8278 objects
​ key = e8a8ff4b-166a-473a-9218-ff492477d59d
​ watchDurationMillis = 5696
​ retainedDurationMillis = 692
​ mApplication instance of android.app.Application
​ mBase instance of androidx.appcompat.view.ContextThemeWrapper

Error 403

I've tried demo on kotlin with my credentials and got some issues. I've changed appid, agconnect-services.json and specified correct signing key. Mostly it works ok, but when I try to move camera, map doesn't load new areas and I got issue in logs.

{"date":1697640155.695,"pid":11703,"tag":"MapRender","priorityLabel":"Info","message":"ERROR TileDataSource.cpp:52: http status code = 403\n"}

App looks like
Снимок экрана 2023-10-18 в 17 40 46

According to documentation
Снимок экрана 2023-10-19 в 12 54 57
Снимок экрана 2023-10-19 в 12 55 18
Does it mean that I need to update payment plan? I use free map without any paid service and as I know I don't need to update plan
Снимок экрана 2023-10-19 в 12 57 00

Map not loading on non-Huawei Android phones

Building map application for Android devices This demo app shows me the pop-up with the message '' Some features in Map Kit Sample may not work properly without HMS Core, which is not installed on your device."
My question is how to use the HMS map on non-Huawei Android devices. It is not a good approach to install HMS Core manually.
is there a way to install it automatically?

Screenshot_20230411_112425

ClassNotFoundException

Sorry, if this has been asked before, but I keep getting a ClassNotFoundException and when running the sample and the map is not rendering.

Running on Device:
Honor X8 / TFY-LX!
Magic UI Version: 3.2
Android version 1.1
HMS Core: 6.7.0.322

Log:

0/17 12:59:39: Launching 'app' on HONOR TFY-LX1.
Install successfully finished in 1 s 567 ms.
$ adb shell am start -n "com./com.huawei.hms.maps.sample.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Connected to process 3784 on device 'honor-tfy_lx1-ALDEVB2420002585'.
Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page.
D/HwFrameworkSecurityPartsFactory: HwFrameworkSecurityPartsFactory in.
I/HwFrameworkSecurityPartsFactory: add HwFrameworkSecurityPartsFactory to memory.
E/BehaviorCollectManager: Fail to acquire dataAnalyzerService...
W/HwCust: CUST VERSION = false, use class = class android.app.HwCustApplicationPackageManagerImpl
D/NetworkSecurityConfig: No Network Security Config specified, using platform default
D/NetworkSecurityConfig: No Network Security Config specified, using platform default
I/AGConnectProvider: AGConnectInitializeProvider#onCreate
I/AGConnectInstance: AGConnectInstance#initialize
I/HwApiCacheMangerEx: apicache path=/storage/emulated/0 state=mounted key=com.
#10158#256
I/HwApiCacheMangerEx: need clear apicache,because volumes changed,oldCnt=0 newCnt=1
I/ServiceRegistrarParser: getServices
I/ServiceRegistrarParser: services:0
I/HwApiCacheMangerEx: apicache path=/storage/emulated/0 state=mounted key=com.#10158#0
I/HwApiCacheMangerEx: need clear apicache,because volumes changed,oldCnt=1 newCnt=1
I/ActivityThread: finishPreloaded preloadStatus 0
I/HwPartIawareFactory: add android.common.HwPartIawareFactoryImpl to memory.
I/AwareBitmapCacher: init processName:com.
pid=3784 uid=10158
E/AwareLog: AtomicFileUtils: readFileLines file not exist: android.util.AtomicFile@763c7a9
V/ActivityThread: callActivityOnCreate
I/DecorView[]: old windowMode:0 new windoMode:1
W/com.: Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (greylist, reflection, allowed)
W/com.
: Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (greylist, reflection, allowed)
I/OverScrollerOptimization: start init SmartSlideOverScroller and get the overscroller config
I/OverScrollerOptimization: get the overscroller config
I/FactoryLoader: loadFactory() ClassNotFoundException !
D/ActivityThread: add activity client record, r= ActivityRecord{c0af659 token=android.os.BinderProxy@ca951d7 {com./com.huawei.hms.maps.sample.MainActivity}} token= android.os.BinderProxy@ca951d7
D/InputEventReceiver: dispatchInputInterval 0
W/HiTouch_HiTouchSensor: depended package hiTouch does n't exist!
I/HiTouch_HiTouchSensor: HiTouch restricted: system app HiTouch don't exist.
D/HiTouch_PressGestureDetector: onAttached, package=com.
, windowType=1, mHiTouchRestricted=true
I/FrameFlow: FrameFlowInit app is not supported by frameflow solution
I/iGraphics: [GetTotalMemory] total memory =5842124KB
W/iGraphics: not MTK
I/iGraphics: [0020080c] pn: com., p: 3784
I/com.
: HwCustType is 0
E/com.: open file error
I/com.
: no cota live update cust policy found
I/com.: GetCfgDirRealPolicyValue: custPolicyDirs: /system/magic/base:/system/magic/oversea:/system/magic/oversea_honor:/system/magic/lite:/vendor/etc:/odm/etc:/odm/hn_odm/TFY-L31CQ:/product_h/etc:/product_h/region_comm/oversea:/preas/oversea:/product_h/hn_oem/TFY-L31CQ:/preload/TFY-L31CQ/opr/eea:/cust/global:/cust/def/eu:/cust/def/eea:/version/cust/opr/eea:/product_h/special_cust/TFY-L31CQ/def/eu:/product_h/special_cust/TFY-L31CQ/def/eea:/product_h/special_cust/TFY-L31CQ/opr/eea:/version/special_cust/TFY-L31CQ/opr/eea:/cust/cotalite:/cust/ecota
I/iGraphics: [0030080c] no spt app: com.

I/AdrenoGLES-0: QUALCOMM build : 1a315fd02c, I090e68fbb7
Build Date : 12/01/21
OpenGL ES Shader Compiler Version: EV031.32.02.16
Local Branch :
Remote Branch :
Remote Branch :
Reconstruct Branch :
I/AdrenoGLES-0: Build Config : S P 10.0.7 AArch64
I/AdrenoGLES-0: Driver Path : /vendor/lib64/egl/libGLESv2_adreno.so
I/AdrenoGLES-0: PFP: 0x016ee197, ME: 0x00000000
D/HwForceDark: [SetDarkThemeInfo] enable = [0], appType = [0], winWidth = [1080]
I/HwViewRootImpl: removeInvalidNode jank list is null
E/RtgSchedIpcFile: RtgSchedIpcFile failed to open /proc/3784/rtg
I/RmeSchedManager: init Rme, version is: v1.0
E/RtgSchedIpcFile: RtgSchedIpcFile failed to open /proc/3784/rtg
I/RmeSchedManager: init Rme, version is: v1.0
E/RtgSchedIpcFile: setCommandByIoctl not opened
D/RtgSched: resetRtgSchedHandle failed enable:1
E/RtgSchedIpcFile: RtgSchedIpcFile failed to open /proc/3784/rtg
I/RmeSchedManager: init Rme, version is: v1.0
E/RtgSchedIpcFile: setCommandByIoctl not opened
D/RtgSched: resetRtgSchedHandle failed enable:0
D/ActivityThread: Won't deliver top position change in state=4
D/RenderService: RCS is disable
I/HwViewRootImpl: removeInvalidNode all the node in jank list is out of time
E/RtgSchedIpcFile: RtgSchedIpcFile failed to open /proc/3784/rtg
I/RmeSchedManager: init Rme, version is: v1.0
E/RtgSchedIpcFile: setCommandByIoctl not opened
D/RtgSched: resetRtgSchedHandle failed enable:1
D/DecorView: showOrHideHighlightView: hasFocus=true; winMode=1; isMrgNull=true
W/InputMethodManager: startInputReason = 1
W/InputMethodManager: startInputReason = 6
I/AwareBitmapCacher: init lrucache size: 2097152 pid=3784
I/Hwaps: APS: EventAnalyzed: initAPS: version is 11.0.0.4
D/Hwaps: Fpsrequest create,type:EXACTLY_IDENTIFY
D/Hwaps: Fpsrequest create,type:EXACTLY_IDENTIFY
D/Hwaps: Fpsrequest create,type:OPENGL_SETTING
D/Hwaps: FpsController create
D/Hwaps: APS: EventAnalyzed: reInitFpsPara :mBaseFps = 90; mMaxFps = 90
W/HwApsManager: HwApsManagerService, registerCallback, start !
D/Hwaps: APS: EventAnalyzed: registerCallbackInApsManagerService, mPkgName:com.; result = true
V/AudioManager: querySoundEffectsEnabled...
I/MainActivity: onClick: BasicMap
V/ActivityThread: callActivityOnCreate
D/BasicMapDemoActivity: onCreate:
I/DecorView[]: old windowMode:0 new windoMode:1
D/ActivityThread: add activity client record, r= ActivityRecord{7cef281 token=android.os.BinderProxy@38f40d7 {com.
/com.huawei.hms.maps.sample.BasicMapDemoActivity}} token= android.os.BinderProxy@38f40d7
D/InputEventReceiver: dispatchInputInterval 0
W/HiTouch_HiTouchSensor: depended package hiTouch does n't exist!
I/HiTouch_HiTouchSensor: HiTouch restricted: system app HiTouch don't exist.
D/HiTouch_PressGestureDetector: onAttached, package=com., windowType=1, mHiTouchRestricted=true
D/DecorView: showOrHideHighlightView: hasFocus=false; winMode=1; isMrgNull=true
D/DecorView: showOrHideHighlightView: hasFocus=true; winMode=1; isMrgNull=true
W/InputMethodManager: startInputReason = 1
V/AudioManager: querySoundEffectsEnabled...
D/BasicMapDemoActivity: createMapView:
V/ActivityThread: callActivityOnCreate
D/MapViewDemoActivity: onCreate:
I/DecorView[]: old windowMode:0 new windoMode:1
W/HmsMapKit_MapsAdvUtil_48: The class:com.huawei.hms.maps.provider.inhuawei.MapViewDelegate not found.
I/AGConnectInstance: AGConnectInstance#initialize
W/AGConnectInstance: Repeated invoking initialize
I/dynamic-api_DynamicModule: 3784-3784|null|com.huawei.hms.feature.dynamic.DynamicModule|queryHMSModuleBundle|114|bundle info: errorCode:0, moduleVersion:60600302, modulePath:/data/user_de/0/com.huawei.hwid/files/modules/external/huawei_module_maps/60600302/Map-Route.apk, loader_version:60600302, loaderPath:/data/user_de/0/com.huawei.hwid/files/modules/external/huawei_module_maps/60600302/Map-Route.apk, armeabiType:0
W/dynamic-api_DynamicModule: 3784-3784|null|com.huawei.hms.feature.dynamic.DynamicModule|b|95|The loader_path:/data/user_de/0/com.huawei.hwid/files/modules/external/huawei_module_maps/60600302/Map-Route.apk in query bundle is not available,change the module version to:-100
I/HmsMapKit_HmsUtil_69: get hms apk version : 0 fallbackVersion : 0
I/HmsMapKit_HmsUtil_169: hmsVersionStr 6.2.0.300
I/HmsMapKit_HmsUtil_197: baseVersion 60200300
I/HMSSDK_HMSPackageManager: aidlService pkgName: com.huawei.hwid
I/HMSSDK_HMSPackageManager: Enter getHMSPackageNameForMultiService
I/HMSSDK_HMSPackageManager: Succeed to find HMS apk: com.huawei.hwid version: 60700322
I/HMSSDK_HMSPackageManager: enter asyncOnceCheckMDMState
I/HMSSDK_HMSPackageManager: enter checkHmsIsSpoof
I/HMSSDK_HMSPackageManager: Enter getHMSPackageName
I/HMSSDK_HMSPackageManager: Succeed to find HMS apk: com.huawei.hwid version: 60700322
I/HMSSDK_ReadApkFileUtil: verifyMDMSignatureV3 verify successful!
I/HMSSDK_HMSPackageManager: quit checkHmsIsSpoof state: SUCCESS
I/HMSSDK_HMSPackageManager: quit asyncOnceCheckMDMState
I/HMSSDK_HMSPackageManager: enter checkHmsIsSpoof
I/HMSSDK_HMSPackageManager: quit checkHmsIsSpoof cached state: SUCCESS
I/HMSSDK_HMSPackageManager: Enter getHMSPackageName
I/HmsMapKit_AvailableAdapter_31: current versionCode:60700322, minimum version requirements: 60200300
I/HMSSDK_HMSPackageManager: Enter getHMSPackageName
I/HMSSDK_HMSPackageManager: Enter getHMSPackageName
I/HmsMapKit_HmsUtil_226: Hms is :0
I/HmsMapKit_HmsUtil_235: Hms is avaiable
I/AGConnectInstance: AGConnectInstance#initialize
W/AGConnectInstance: Repeated invoking initialize
E/HmsMapKit_MapView_119: createDelegate: creator == null
I/HmsMapKit_AbsDeferredLifecycleHelper_28: getCreator: createdFlag = false
I/HmsMapKit_AbsDeferredLifecycleHelper_103: getCreator: execute
I/HmsMapKit_MapView_23: getMapAsync: getDelegate = null
I/HmsMapKit_MapCreator_16: Making Creator dynamically
I/HmsMapKit_MapView_60: getMapAsync: mapReadyCallbacks.size = 1
I/HmsMapKit_DynamicUtil_31: isFlyingSkyDevice extChannel: UNKNOWN
D/ActivityThread: add activity client record, r= ActivityRecord{e65b096 token=android.os.BinderProxy@b55baba {com.
/com.huawei.hms.maps.sample.MapViewDemoActivity}} token= android.os.BinderProxy@b55baba
I/HmsMapKit_DynamicUtil_121: isHuaweiPhone : true
E/HmsMapKit_DynamicUtil_83: ClassNotFoundException:
I/HmsMapKit_DynamicUtil_105: emuiVersionCodeValue: 0
E/HmsMapKit_DynamicUtil_78: ClassNotFoundException:
I/HmsMapKit_DynamicUtil_100: emuiVersionCodeValue: 0
I/AGConnectInstance: AGConnectInstance#initialize
W/AGConnectInstance: Repeated invoking initialize
E/HmsMapKit_MapView_119: createDelegate: creator == null
I/HmsMapKit_AbsDeferredLifecycleHelper_28: getCreator: createdFlag = true
I/AGConnectInstance: AGConnectInstance#initialize
W/AGConnectInstance: Repeated invoking initialize
E/HmsMapKit_MapView_119: createDelegate: creator == null
I/HmsMapKit_AbsDeferredLifecycleHelper_28: getCreator: createdFlag = true
I/dynamic-api_DynamicModule: 3784-4249|null|com.huawei.hms.feature.dynamic.DynamicModule|queryHMSModuleBundle|114|bundle info: errorCode:0, moduleVersion:10023300, modulePath:/data/user_de/0/com.huawei.hwid/files/modules/external/huawei_module_dynamicloader/10023300/DynamicLoader.apk, loader_version:10023300, loaderPath:/data/user_de/0/com.huawei.hwid/files/modules/external/huawei_module_dynamicloader/10023300/DynamicLoader.apk, armeabiType:0
W/dynamic-api_AssetLoadManager: 3784-4249|null|com.huawei.hms.feature.dynamic.AssetLoadManager|b|170|No module apk in asset path.
I/dynamic-api_DynamicModule: 3784-4249|null|com.huawei.hms.feature.dynamic.DynamicModule|a|180|HMS loader version:10023300, asset loader version:0
I/dynamic-api_DynamicModule: 3784-4249|null|com.huawei.hms.feature.dynamic.DynamicModule|a|191|Choose dynamicLoader in HMS.
I/dynamic-api_DynamicModule: 3784-4249|null|com.huawei.hms.feature.dynamic.DynamicModule|a|234|HMS dynamicloader is not available, choose assets loader as default.
I/dynamic-api_DynamicModule: 3784-4249|null|com.huawei.hms.feature.dynamic.DynamicModule|a|13|Load start in new-version-policy.
I/dynamic-api_DynamicModule: 3784-4249|null|com.huawei.hms.feature.dynamic.DynamicModule|a|45|The loader path for module:huawei_module_maps is:null, and versionType is:2
E/HmsMapKit_MapCreator_60: Loading mapRoute dynamically failed, exception is Cannot find a valid dynamic loader in HMS or local.
E/HmsMapKit_MapCreator_205: getRemoteContext: LoadingException: bundle = null, and retryCount is 0
D/InputEventReceiver: dispatchInputInterval 0
W/HiTouch_HiTouchSensor: depended package hiTouch does n't exist!
I/HiTouch_HiTouchSensor: HiTouch restricted: system app HiTouch don't exist.
D/HiTouch_PressGestureDetector: onAttached, package=com.***, windowType=1, mHiTouchRestricted=true
D/DecorView: showOrHideHighlightView: hasFocus=false; winMode=1; isMrgNull=true
D/DecorView: showOrHideHighlightView: hasFocus=true; winMode=1; isMrgNull=true
W/InputMethodManager: startInputReason = 1
E/HmsMapKit_DynamicUtil_83: ClassNotFoundException:
I/HmsMapKit_DynamicUtil_105: emuiVersionCodeValue: 0
E/HmsMapKit_DynamicUtil_78: ClassNotFoundException:
I/HmsMapKit_DynamicUtil_100: emuiVersionCodeValue: 0

Cluster crashes app

steps to reproduce

set huaweimap clustering to true
set markeroption as clusterable to true
set markeroption icon using bitmapdescriptorfactory.fromresource(r.drawable.anyresource)

then clear map.
then redo steps above.
notice crasj

Can not move map

Since this method used by the Huawei class was called constantly, even if I moved the map, it returned to its previous position.
override fun configureMapOnStart(initialCoordinate: MTSLatLng?, zoom: Float) { if (!initialRequestSent) { mapFragment!!.zoomToLocation( MTSLatLng(initialCoordinate?.latitude.orZero(), initialCoordinate?.longitude.orZero()), zoom ) } }
I reached the solution by adding a flag to check if the map was created. The same class does not cause problems with google map.

Map is not rendering

Hi all,

I'm trying to use Huawei maps in react native application for android support, After making necessary changes based on hms map kit demo, I'm unable to load the maps in Huawei cloud simulator and hms core with google play service devices as well. I'm able to see only a white screen on the map. Please let me know any changes to be done to resolve the issue.
Screenshot 2020-12-16 at 4 21 49 PM
Screenshot 2020-12-16 at 4 21 49 PM

Map not rendering

Hello,

I followed the official codelabs of loading the Map on my Huawei device but the map is always blank. I am using version com.huawei.hms:maps:6.11.2.300

Screenshot 2023-09-29 at 23 15 39

Here are part of my logs:

Screenshot 2023-09-29 at 23 14 50 Screenshot 2023-09-29 at 23 16 24 Screenshot 2023-09-29 at 23 17 54 Screenshot 2023-09-30 at 00 55 56

I think it has something to do with my fingerprint authentication, but I did everything like in the official codelab.

Can you help me? Thanks!

App crashes

hey, I just downloaded the code, ran it on my huawei HMS phone, got first screen ok, but when I am clicking on any of the buttons it is crashing don't know what is causing this, but the logcat says :

2020-06-17 13:57:02.167 20131-20131/com.huawei.hms.maps.sample E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.huawei.hms.maps.sample, PID: 20131
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.huawei.hms.maps.sample/com.huawei.hms.maps.sample.CircleDemoActivity}: android.view.InflateException: Binary XML file line #7 in com.huawei.hms.maps.sample:layout/activity_circle_demo: Binary XML file line #7 in com.huawei.hms.maps.sample:layout/activity_circle_demo: Error inflating class fragment
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3895)
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4074)
        at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:91)
        at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:149)
        at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:103)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2473)
        at android.os.Handler.dispatchMessage(Handler.java:110)
        at android.os.Looper.loop(Looper.java:219)
        at android.app.ActivityThread.main(ActivityThread.java:8347)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:513)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1055)
     Caused by: android.view.InflateException: Binary XML file line #7 in com.huawei.hms.maps.sample:layout/activity_circle_demo: Binary XML file line #7 in com.huawei.hms.maps.sample:layout/activity_circle_demo: Error inflating class fragment
     Caused by: android.view.InflateException: Binary XML file line #7 in com.huawei.hms.maps.sample:layout/activity_circle_demo: Error inflating class fragment
     Caused by: com.huawei.hms.maps.model.RuntimeRemoteException: AppId is null. Please check if agconnect-services.json file is is added in app project.
        at com.huawei.hms.maps.common.util.AppInfoUtil.a(AppInfoUtil.java:22)
        at com.huawei.hms.maps.SupportMapFragment$SupportMapFragmentDeferredLifecycleHelper.b(SupportMapFragment.java:293)
        at com.huawei.hms.maps.SupportMapFragment$SupportMapFragmentDeferredLifecycleHelper.createDelegate(SupportMapFragment.java:275)
        at com.huawei.hms.feature.dynamic.DeferredLifecycleHelper.a(Unknown Source:44)
        at com.huawei.hms.feature.dynamic.DeferredLifecycleHelper.onInflate(Unknown Source:5)
        at com.huawei.hms.maps.SupportMapFragment.onInflate(SupportMapFragment.java:103)
        at androidx.fragment.app.Fragment.onInflate(Fragment.java:1384)
        at androidx.fragment.app.FragmentManagerImpl.onCreateView(FragmentManager.java:3744)
        at androidx.fragment.app.FragmentController.onCreateView(FragmentController.java:120)
        at androidx.fragment.app.FragmentActivity.dispatchFragmentsOnCreateView(FragmentActivity.java:405)
        at androidx.fragment.app.FragmentActivity.onCreateView(FragmentActivity.java:387)
        at android.view.LayoutInflater.tryCreateView(LayoutInflater.java:1079)
        at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:1007)
        at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:971)
        at android.view.LayoutInflater.rInflate(LayoutInflater.java:1133)
        at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:1094)
        at android.view.LayoutInflater.inflate(LayoutInflater.java:692)
        at android.view.LayoutInflater.inflate(LayoutInflater.java:536)
        at android.view.LayoutInflater.inflate(LayoutInflater.java:483)
        at androidx.appcompat.app.AppCompatDelegateImpl.setContentView(AppCompatDelegateImpl.java:469)
        at androidx.appcompat.app.AppCompatActivity.setContentView(AppCompatActivity.java:140)
        at com.huawei.hms.maps.sample.CircleDemoActivity.onCreate(CircleDemoActivity.java:74)
        at android.app.Activity.performCreate(Activity.java:8085)
        at android.app.Activity.performCreate(Activity.java:8073)
        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1320)
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3868)
2020-06-17 13:57:02.167 20131-20131/com.huawei.hms.maps.sample E/AndroidRuntime:     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4074)
        at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:91)
        at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:149)
        at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:103)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2473)
        at android.os.Handler.dispatchMessage(Handler.java:110)
        at android.os.Looper.loop(Looper.java:219)
        at android.app.ActivityThread.main(ActivityThread.java:8347)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:513)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1055)
2020-06-17 13:57:02.184 20131-20131/com.huawei.hms.maps.sample I/Process: Sending signal. PID: 20131 SIG: 9

any help would be appreciated.

Crash on orientation change when map clustering is set to true and clusterable markers are being added to map

Scenario:

  1. Activity1 with a button that opens MapActivity (contains a map view)
  2. Map on MapActivity has clusterable set to true. On MapActivity an api call is made to get some data and once this data is available some pins (number of pins ranges between 40 - 500) are placed on map. Pins have clusterable set to true
  3. When goin from Activity1 to MapActivity if the button that leads to MapActivity is pressed and simultaneously the screen is rotated the following crash occurs:

java.lang.NullPointerException: Attempt to invoke virtual method 'com.huawei.map.mapapi.model.Marker com.huawei.map.mapapi.HWMap.addMarker(com.huawei.map.mapapi.model.MarkerOptions)' on a null object reference
at com.huawei.hms.maps.provider.markercluster.clustering.view.e$d.b(:10711)
at com.huawei.hms.maps.provider.markercluster.clustering.view.e$e.handleMessage(:1880)
at android.os.Handler.dispatchMessage(Handler.java:112)
at android.os.Looper.loop(Looper.java:216)
at android.app.ActivityThread.main(ActivityThread.java:7625)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:524)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:987)
E/HmsMapKit_CrashHandler_79: uncaughtException stacktrace is java.lang.NullPointerException: Attempt to invoke virtual method 'com.huawei.map.mapapi.model.Marker com.huawei.map.mapapi.HWMap.addMarker(com.huawei.map.mapapi.model.MarkerOptions)' on a null object reference
at com.huawei.hms.maps.provider.markercluster.clustering.view.e$d.b(:10711)
at com.huawei.hms.maps.provider.markercluster.clustering.view.e$e.handleMessage(:1880)
at android.os.Handler.dispatchMessage(Handler.java:112)
at android.os.Looper.loop(Looper.java:216)
at android.app.ActivityThread.main(ActivityThread.java:7625)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:524)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:987)

Crash on map loading when back button pressed when marker clustering = true

Scenario:
HMS Map Kit version = 5.0.1.301
Markers clustering = true

  1. Open a fragment with a map
  2. Markers are added
  3. We do not allow the map to load, immediately press the "Back" button
  4. We get an application crash
java.lang.NullPointerException: Attempt to invoke virtual method 'com.huawei.map.mapapi.model.Marker com.huawei.map.mapapi.HWMap.addMarker(com.huawei.map.mapapi.model.MarkerOptions)' on a null object reference
        at com.huawei.hms.maps.provider.markercluster.clustering.view.e$d.b(:10711)
        at com.huawei.hms.maps.provider.markercluster.clustering.view.e$e.handleMessage(:1880)
        at android.os.Handler.dispatchMessage(Handler.java:110)
        at android.os.Looper.loop(Looper.java:219)
        at android.app.ActivityThread.main(ActivityThread.java:8347)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:513)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1055)

java.lang.NullPointerException

java.lang.NullPointerException: Attempt to invoke virtual method 'java.io.File android.content.Context.getFilesDir()' on a null object reference

at com.huawei.hms.maps.provider.util.mai.a(Unknown Source:14)
at com.huawei.hms.maps.provider.huawei.SupportMapFragmentImpl.a(Unknown Source:16)
at com.huawei.hms.maps.provider.huawei.SupportMapFragmentImpl.<init>(Unknown Source:5)
at com.huawei.hms.maps.provider.huawei.SupportMapFragmentImpl.<init>(Unknown Source:1)
at com.huawei.hms.maps.CreatorImpl.newMapFragmentDelegate(Unknown Source:11)
at com.huawei.hms.maps.internal.mac$maa.onTransact(Unknown Source:422)
at android.os.Binder.transact(Binder.java:921)
at com.huawei.hms.maps.mae.a(Unknown Source:28)
at com.huawei.hms.maps.internal.mad$maa$maa.a(Unknown Source:13)
at com.huawei.hms.maps.SupportMapFragment$maa.a(Unknown Source:17)
at com.huawei.hms.maps.SupportMapFragment$maa.a(Unknown Source:53)
at com.huawei.hms.maps.maa$maa.a(Unknown Source:25)
at com.huawei.hms.maps.maa$maa.accept(Unknown Source:2)
at ij.c.e(LambdaObserver.java:9)
at mj.d.c(HalfSerializer.java:15)
at jj.g$a.e(ObservableRetryWhen.java:5)
at jj.f$a.i(ObservableObserveOn.java:48)
at jj.f$a.run(ObservableObserveOn.java:9)
at aj.d$b.run(HandlerScheduler.java:3)
at android.os.Handler.handleCallback(Handler.java:900)
at android.os.Handler.dispatchMessage(Handler.java:103)
at android.os.Looper.loop(Looper.java:219)
at android.app.ActivityThread.main(ActivityThread.java:8668)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:513)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1109)

Hello Huawei team! I'm getting this error, I don't know how to solve it, I can't find these classes in dependencies, please help me!

Getting Stackoverflow error when compiling my project in android studio

Describe the bug
Currently, I'm using these many HMS-core libraries along with some google libraries in my project.

    implementation 'com.google.android.gms:play-services-base:17.6.0'
    implementation 'com.google.android.gms:play-services-maps:18.0.0'
    implementation 'com.google.android.gms:play-services-location:18.0.0'
    implementation 'com.google.android.gms:play-services-oss-licenses:17.0.0'
    implementation 'com.google.android.gms:play-services-auth:19.2.0'

    implementation 'com.huawei.hms:location:6.2.0.300'
    implementation 'com.huawei.hms:site:6.2.0.301'
    implementation 'com.huawei.hms:maps:6.2.0.301'
    implementation 'com.huawei.hms:push:6.1.0.300'
    implementation 'com.huawei.hms:scan:2.2.0.300'

and In my app->Build.gradle these many plugins I'm using

apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'
apply plugin: 'com.google.android.gms.oss-licenses-plugin'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-parcelize'
apply plugin: 'com.huawei.agconnect'

When compiling and installing apk in the emulator at that time I'm getting this error. please check the attached screenshots.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:getDependencies'.
> java.lang.StackOverflowError (no error message)

Screenshots
image
image

Desktop (please complete the following information):

  • Gradle version: 7.0.3
  • Android Studio version: Android Studio Arctic Fox | 2020.3.1 Patch 3

Additional context
Note: If I'm commenting out this line or using older versions of gms libraries in that case it works fine.
// apply plugin: 'com.google.android.gms.oss-licenses-plugin'

implementation 'com.huawei.hms:location:5.1.0.303'
implementation 'com.huawei.hms:site:6.0.0.300'
implementation 'com.huawei.hms:maps:6.0.0.301'
implementation 'com.huawei.hms:push:5.3.0.301'
implementation 'com.huawei.hms:scan:2.2.0.300'

Is there a workaround for this issue? kindly, suggest.

App crashes on orientation change (NullPointerException: camera target is null)

Steps to reproduce:

  1. Open demo app
  2. On main page click on "Marker Demo" and rapidly rotate the screen (before map gets to be created on next screen, you have to almost simultaneously click on button and rotate the screen)
  3. App crashes with following stack trace:

E/MarkerDemoActivity: NullPointerException java.lang.NullPointerException: camera target is null
2020-07-02 12:16:17.405 14733-14733/com.huawei.hms.maps.sample E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.huawei.hms.maps.sample, PID: 14733
java.lang.NullPointerException: Attempt to invoke virtual method 'void com.huawei.map.mapapi.HWMap.setDefaultLocationSource(com.huawei.map.mapapi.LocationSource)' on a null object reference
at com.huawei.hms.maps.provider.huawei.e.a(:47579)
at com.huawei.hms.maps.provider.huawei.e$14.b(:1519)
at o.fa$3.run(Unknown Source:0)
at android.os.Handler.handleCallback(Handler.java:907)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:216)
at android.app.ActivityThread.main(ActivityThread.java:7625)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:524)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:987)
2020-07-02 12:16:17.406 14733-14733/com.huawei.hms.maps.sample E/HmsMapKit_CrashHandler_79: uncaughtException stacktrace is java.lang.NullPointerException: Attempt to invoke virtual method 'void com.huawei.map.mapapi.HWMap.setDefaultLocationSource(com.huawei.map.mapapi.LocationSource)' on a null object reference
at com.huawei.hms.maps.provider.huawei.e.a(:47579)
at com.huawei.hms.maps.provider.huawei.e$14.b(:1519)
at o.fa$3.run(Unknown Source:0)
at android.os.Handler.handleCallback(Handler.java:907)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:216)
at android.app.ActivityThread.main(ActivityThread.java:7625)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:524)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:987)

Note: crash can be reproduced by clicking on other options/buttons from main screen not just "Marker Demo" button

BUSINESS_VERIFICATION_FAILED, HmsMapKit_TileCache_38: startUrlRequest Identity fail ,do not has permission get tile. authResult :060011

2020-12-21 16:28:40.534 17210-19883/ E/HmsMapKit_ErrorTraceLogPusher_4: cache error trace log : ErrorTraceLogDTO{ scenario = ACCESS_MAP_SERVICE_ERROR', message='010010 : BUSINESS_VERIFICATION_FAILED'}
    com.huawei.hms.maps.foundation.client.mab: *1*0*0*:*B*S*N*S*_*E*I*I*A*I*N*F*I*E*
2020-12-21 17:04:56.073 23913-24850/ I/HmsMapKit_AuthenticateClient_289: authenticate requestId is : 103535075authenticate20201221170456062378458
2020-12-21 17:04:56.154 23913-24850/ D/HmsMapKit_AuthenticateClient_75: response code : 401
2020-12-21 17:04:56.157 23913-24850/ E/HmsMapKit_ErrorCodeConsts_208: No matching return code is found. Build a new one, code is .010002
2020-12-21 17:04:56.159 23913-24850/ D/HmsMapKit_AccessTraceLogPusher_6343: cache access trace log: AccessTraceLogDTO{ requestId='103535075authenticate20201221170456075717173', apiName='MapView.onCreate', errorCode='010002', startTime=1608566696073, endTime=1608566696158}
2020-12-21 17:04:56.161 23913-24850/ E/HmsMapKit_ErrorTraceLogPusher_105: cache error trace log : ErrorTraceLogDTO{ scenario = ACCESS_MAP_SERVICE_ERROR', message='010002 : Unknown Code - 010002'}
    com.huawei.hms.maps.foundation.client.b: *1*0*2*:*U*k*o*n*C*d* * *1*0*2
        at com.huawei.hms.maps.foundation.client.b$a.a(:89)
        at com.huawei.hms.maps.foundation.client.c.d(:173)
        at com.huawei.hms.maps.foundation.client.c.e(:75)
        at com.huawei.hms.maps.maproute.client.auth.b.b(:43)
        at com.huawei.hms.maps.maproute.cache.a$a.c(:289)
        at com.huawei.hms.maps.maproute.cache.a$a.call(:5272)
        at ev.d(:42)
        at dU.e(:12025)
        at eB$e.run(:96)
        at dX$e.run(:571)
        at eM.run(:66)
        at eM.call(:57)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:301)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
        at java.lang.Thread.run(Thread.java:929)
2020-12-21 17:04:56.163 23913-24850/ D/HmsMapKit_ErrorTraceLogPusher_105: logLength is 875
2020-12-21 17:04:56.164 23913-24850/ D/HmsMapKit_ErrorTraceLogPusher_1092: analyticsInstance.onEvent(), eventId is map_errorlog_report, valueMap.size() is 15
2020-12-21 17:04:56.166 23913-24850/ I/HiAnalytics/event: [2020-12-21 17:04:56.165 I/hianalytics/HiAnalytics/event 23913:1400 null:13] HiAnalyticsInstance.onEvent(int type, String eventId, Map<String, String> mapValue) is execute.TAG: hms_map,TYPE: 1
2020-12-21 17:04:56.169 23913-24850/ E/HmsMapKit_AuthenticateCache_293: authenToServer ClientAccessException
2020-12-21 17:04:56.170 23913-24850/ E/HmsMapKit_ErrorTraceLogPusher_6324: cache error trace log : ErrorTraceLogDTO{ scenario = AUTHENTICATE', message='INTERNAL_ERRORauthenToServer ClientAccessException'}
2020-12-21 17:04:56.172 23913-24850/ D/HmsMapKit_ErrorTraceLogPusher_1092: analyticsInstance.onEvent(), eventId is map_errorlog_report, valueMap.size() is 14
2020-12-21 17:04:56.173 23913-24850/ I/HiAnalytics/event: [2020-12-21 17:04:56.172 I/hianalytics/HiAnalytics/event 23913:1400 null:13] HiAnalyticsInstance.onEvent(int type, String eventId, Map<String, String> mapValue) is execute.TAG: hms_map,TYPE: 1
2020-12-21 17:04:56.175 23913-23913/ D/HmsMapKit_AuthenticateCache_63: result is 060011 : INTERNAL_ERROR

We have created the project on AGConnect, added the SHA256 for an SHA256withRSA keystore, signed the app with said keystore, run the app, and we're getting the error

log : ErrorTraceLogDTO{ scenario = AUTHENTICATE', message='INTERNAL_ERRORauthenToServer ClientAccessException'}
D/HmsMapKit_AuthenticateCache_63: result is 060011 : INTERNAL_ERROR

Please advise what we are missing, we've been trying to fix this for a week now.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.