Android Question Error Implementing HMS Core and services

mcqueccu

Well-Known Member
Licensed User
Longtime User
After following the HMS SDK instructions, creating new project in Huawei Developer dashboard and enabling the required services, I get this error message.

I have AppGallery APk installed from their website and HMS Core installed from the AppGallery.
But When i run checkDRM I get the NOT PURCHASED log response


B4X:
Copying updated assets files (1)
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create (first time) **
Call B4XPages.GetManager.LogEvents = True to enable logging B4XPages events.
** Activity (main) Resume **
--------- beginning of main
--------- beginning of system
04-13 02:37:33.282 31257 31257 I HMSSDK_AutoInit: Push init start
04-13 02:37:34.373 31257  7541 E HMSSDK_AutoInit: Push init failed
04-13 02:37:34.373 31257  7541 E HMSSDK_AutoInit: com.huawei.hms.common.ApiException: 907135003: client api invalid
04-13 02:37:34.373 31257  7541 E HMSSDK_AutoInit:     at com.huawei.hms.opendevice.a.a(ErrorEnum.java:272)
04-13 02:37:34.373 31257  7541 E HMSSDK_AutoInit:     at com.huawei.hms.opendevice.k.doExecute(GetTokenTask.java:58)
04-13 02:37:34.373 31257  7541 E HMSSDK_AutoInit:     at com.huawei.hms.opendevice.k.doExecute(GetTokenTask.java:34)
04-13 02:37:34.373 31257  7541 E HMSSDK_AutoInit:     at com.huawei.hms.common.internal.TaskApiCall.onResponse(TaskApiCall.java:190)
04-13 02:37:34.373 31257  7541 E HMSSDK_AutoInit:     at com.huawei.hms.common.internal.HuaweiApiManager$ConnectionManager.innerConnectionFailed(HuaweiApiManager.java:327)
04-13 02:37:34.373 31257  7541 E HMSSDK_AutoInit:     at com.huawei.hms.common.internal.HuaweiApiManager$ConnectionManager.onConnectionFailed(HuaweiApiManager.java:341)
04-13 02:37:34.373 31257  7541 E HMSSDK_AutoInit:     at com.huawei.hms.common.internal.BaseHmsClient.notifyFailed(BaseHmsClient.java:415)
04-13 02:37:34.373 31257  7541 E HMSSDK_AutoInit:     at com.huawei.hms.common.internal.BaseHmsClient.resolution(BaseHmsClient.java:389)
04-13 02:37:34.373 31257  7541 E HMSSDK_AutoInit:     at com.huawei.hms.common.internal.BaseHmsClient.checkAvailabilityAndConnect(BaseHmsClient.java:367)
04-13 02:37:34.373 31257  7541 E HMSSDK_AutoInit:     at com.huawei.hms.common.internal.BaseHmsClient.connect(BaseHmsClient.java:427)
04-13 02:37:34.373 31257  7541 E HMSSDK_AutoInit:     at com.huawei.hms.common.internal.HuaweiApiManager$ConnectionManager.connect(HuaweiApiManager.java:307)
04-13 02:37:34.373 31257  7541 E HMSSDK_AutoInit:     at com.huawei.hms.common.internal.HuaweiApiManager$ConnectionManager.sendRequest(HuaweiApiManager.java:227)
04-13 02:37:34.373 31257  7541 E HMSSDK_AutoInit:     at com.huawei.hms.common.internal.HuaweiApiManager.connectAndSendRequest(HuaweiApiManager.java:146)
04-13 02:37:34.373 31257  7541 E HMSSDK_AutoInit:     at com.huawei.hms.common.internal.HuaweiApiManager.handleMessage(HuaweiApiManager.java:131)
04-13 02:37:34.373 31257  7541 E HMSSDK_AutoInit:     at android.os.Handler.dispatchMessage(Handler.java:102)
04-13 02:37:34.373 31257  7541 E HMSSDK_AutoInit:     at android.os.Looper.loop(Looper.java:246)
04-13 02:37:34.373 31257  7541 E HMSSDK_AutoInit:     at android.os.HandlerThread.run(HandlerThread.java:67)
04-13 02:37:35.152 31257 31257 I HiAnalyticsSDK: =======================================
04-13 02:37:35.152 31257 31257 I HiAnalyticsSDK:  HiAnalyticsSDK_5.0.4.300
04-13 02:37:35.152 31257 31257 I HiAnalyticsSDK: =======================================
04-13 02:37:35.156 31257  7620 W HiAnalyticsSDK: ReferrerTask=> onFail: bindService result: false
04-13 02:37:35.157 31257  7620 W HiAnalyticsSDK: DeviceUtil=> invokeStaticFun() Exception
04-13 02:37:35.157 31257  7620 I HiAnalyticsSDK: DeviceUtil=> debugMode disabled.
04-13 02:37:35.157 31257  7620 I HiAnalyticsSDK: ReferrerTask=> normal FirstOpen
04-13 02:37:35.157 31257  7620 W HiAnalyticsSDK: DeviceUtil=> invokeStaticFun() Exception
04-13 02:37:35.157 31257  7620 I HiAnalyticsSDK: DeviceUtil=> debugMode disabled.
04-13 02:37:35.452 31257  7621 I HiAnalyticsSDK: RecordTask=> record evt size : 2
04-13 02:37:38.302 31257 31257 I HiAnalyticsSDK: InteractionManager=> connectManager onReport
04-13 02:37:38.314 31257  7694 W HiAnalyticsSDK: ReportTask=> events size is empty
04-13 02:37:42.009 31257  7583 E HiAnalyticsSDK: TokenProcessor=> SE-003|unknown exception on the AGC SDK: com.huawei.agconnect.exception.AGCNetworkException:  code: 1 message: com.huawei.agconnect.https.HttpsException: HTTP HasRequest: true Failed to connect to connect-dre.dbankcloud.cn/80.158.56.80:443
04-13 02:37:42.009 31257  7583 E HiAnalyticsSDK:     at com.huawei.agconnect.https.d$1.a(Unknown Source:50)
04-13 02:37:42.009 31257  7583 E HiAnalyticsSDK:     at com.huawei.agconnect.https.d$1.call(Unknown Source:0)
04-13 02:37:42.009 31257  7583 E HiAnalyticsSDK:     at com.huawei.hmf.tasks.a.j$1.run(Unknown Source:4)
04-13 02:37:42.009 31257  7583 E HiAnalyticsSDK:     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
04-13 02:37:42.009 31257  7583 E HiAnalyticsSDK:     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
04-13 02:37:42.009 31257  7583 E HiAnalyticsSDK:     at java.lang.Thread.run(Thread.java:923)
04-13 02:37:42.010 31257  7581 I HiAnalyticsSDK: EventApiUsageRecordTask=> Begin to run EventApiUsageRecordTask...1
** Activity (main) Pause event (activity is not paused). **
04-13 02:38:07.975 31257 31257 I HiAnalyticsSDK: LifecycleCallback=> onActivityPaused called.
04-13 02:38:08.255 31257 31257 I HiAnalyticsSDK: ActivityStatManager=> isExitDelayed = true
04-13 02:38:08.255 31257 31257 W HiAnalyticsSDK: ActivityStatManager=> onScreenExit: onScreenEnter should be invoked first.
04-13 02:38:08.256 31257 31257 I HiAnalyticsSDK: LifecycleCallback=> still foreground
** Activity (main) Resume **
04-13 02:38:14.588 31257 31257 I HiAnalyticsSDK: LifecycleCallback=> onActivityResumed called.
04-13 02:38:14.588 31257 31257 I HiAnalyticsSDK: LifecycleCallback=> foreground. Resume time: 1712975894588
04-13 02:38:14.588 31257 31257 W HiAnalyticsSDK: SessionWrapper=> OnBackground() need to be called before!
04-13 02:38:14.693 31257 31257 I HiAnalyticsSDK: ActivityStatManager=> isEnterDelayed = true, no override screen event...
04-13 02:38:14.705 31257 31257 W HiAnalyticsSDK: DeviceUtil=> invokeStaticFun() Exception
04-13 02:38:14.705 31257 31257 I HiAnalyticsSDK: DeviceUtil=> debugMode disabled.
04-13 02:38:16.203 31257  7909 I HiAnalyticsSDK: RecordTask=> record evt size : 3
 

Attachments

  • Project.zip
    89.2 KB · Views: 117
Cookies are required to use this site. You must accept them to continue using the site. Learn more…