Got it

Facing issue while integrating hms_site kit into flutter app

Created: Jan 7, 2022 12:56:35Latest reply: Jan 7, 2022 14:14:31 279 3 0 0 0
  HiCoins as reward: 0 (problem unresolved)

I've been following the tutorials


https://developer.huawei.com/consumer/en/doc/development/HMS-Plugin-Guides-V1/integrate-plugin-0000001050421239-V1


https://medium.com/huawei-developers/how-to-integrate-huawei-site-kit-in-flutter-27c9ef7e9ba5


to integrate hms site kit into my flutter app.


You can find my code here - https://github.com/logan0501/flutter_app


I am getting the following error when clicking the Floating action button.


I/HmsSiteKit_SecureRandomFactory_4(32487): getSecureRandom

I/HMSSDK_HMSPackageManager(32487): Enter getHMSPackageNameForMultiService

E/HMSSDK_HMSPackageManager(32487): resolveInfoList is null or empty

E/HMSSDK_HMSPackageManager(32487): PackagePriorityInfo list is null

E/HMSSDK_HMSPackageManager(32487): <initHmsPackageInfoForMultiService> Failed to find HMS apk

I/HMSSDK_HMSBIInitializer(32487): Builder->biInitFlag :false

W/gan.flutter_ap(32487): Accessing hidden field Lsun/misc/Unsafe;->theUnsafe:Lsun/misc/Unsafe; (greylist, reflection, allowed)

W/gan.flutter_ap(32487): Accessing hidden method Lsun/misc/Unsafe;->allocateInstance(Ljava/lang/Class;)Ljava/lang/Object; (greylist, reflection, allowed)

I/HMSSDK_HMSPackageManager(32487): Enter getHMSPackageNameForMultiService

E/HMSSDK_HMSPackageManager(32487): resolveInfoList is null or empty

E/HMSSDK_HMSPackageManager(32487): PackagePriorityInfo list is null

E/HMSSDK_HMSPackageManager(32487): <initHmsPackageInfoForMultiService> Failed to find HMS apk

I/HMSSDK_HMSPackageManager(32487): Enter getHMSPackageNameForMultiService

E/HMSSDK_HMSPackageManager(32487): resolveInfoList is null or empty

E/HMSSDK_HMSPackageManager(32487): PackagePriorityInfo list is null

E/HMSSDK_HMSPackageManager(32487): <initHmsPackageInfoForMultiService> Failed to find HMS apk

I/HMSSDK_HuaweiApi(32487): mConnectionManagerKey:ConnectionManagerKey{mApi=com.huawei.hms.api.Api@4608382, mOption=null, mHaveOption=false, mHashKey=1707460708, subAppId='null', mContextRef=java.lang.ref.WeakReference@4c7bf57}

I/HMSSDK_HMSPackageManager(32487): Enter getHMSPackageNameForMultiService

E/HMSSDK_HMSPackageManager(32487): resolveInfoList is null or empty

E/HMSSDK_HMSPackageManager(32487): PackagePriorityInfo list is null

E/HMSSDK_HMSPackageManager(32487): <initHmsPackageInfoForMultiService> Failed to find HMS apk

I/HMSSDK_HuaweiApi(32487): inner hms is empty,hms pkg name is com.huawei.hwid

I/HMSSDK_HuaweiApi(32487): mConnectionManagerKey:ConnectionManagerKey{mApi=com.huawei.hms.api.Api@4608382, mOption=null, mHaveOption=false, mHashKey=1707460708, subAppId='null', mContextRef=java.lang.ref.WeakReference@4c7bf57}

I/HMSSDK_HuaweiApi(32487): mConnectionManagerKey:ConnectionManagerKey{mApi=com.huawei.hms.api.Api@4608382, mOption=null, mHaveOption=false, mHashKey=1707460708, subAppId='null', mContextRef=java.lang.ref.WeakReference@4c7bf57}

I/HMSSDK_HuaweiApiManager(32487): sendRequest

I/HMSSDK_HuaweiApiManager(32487): isConnected:false.

I/HMSSDK_BaseHmsClient(32487): ====== HMSSDK version: 60100302 ======

I/HMSSDK_BaseHmsClient(32487): Enter connect, Connection Status: 1

I/HMSSDK_BaseHmsClient(32487): connect minVersion:40003300 packageName:com.huawei.hwid

I/HMSSDK_Util(32487): available exist: true

I/HMSSDK_Util(32487): available exist: true

E/HMSSDK_HMSPackageManager(32487): resolveInfoList is null or empty

E/HMSSDK_HMSPackageManager(32487): PackagePriorityInfo list is null

E/HMSSDK_HMSPackageManager(32487): <initHmsPackageInfoForMultiService> Failed to find HMS apk

I/HMSSDK_AvailableAdapter(32487): HMS is not installed

I/HMSSDK_BaseHmsClient(32487): check available result: 1

I/HMSSDK_BaseHmsClient(32487): bindCoreService3.0 fail, start resolution now.

I/HMSSDK_BaseHmsClient(32487): enter HmsCore resolution

I/HMSSDK_UIUtil(32487): appProcess.importance is 100

I/HMSSDK_UIUtil(32487): isForground is true***  isLockedState is false

I/HMSSDK_UIUtil(32487): appProcess.importance is 100

I/HMSSDK_UIUtil(32487): isForground is true***  isLockedState is false

I/HMSSDK_AvailableAdapter(32487): startResolution

I/HMSSDK_HMSPackageManager(32487): Enter getHMSPackageName

E/HMSSDK_HMSPackageManager(32487): <initHmsPackageInfo> Failed to find HMS apk

W/ActivityThread(32487): handleWindowVisibility: no activity for token android.os.BinderProxy@5f1e72d

I/HMSSDK_BridgeActivity(32487): BridgeActivity onCreate

I/PhoneWindow(32487): initSystemUIColor

E/HMSSDK_BridgeActivity(32487): An exception occurred while reading: setDisplaySideModecom.huawei.android.view.WindowManagerEx$LayoutParamsEx

I/HMSSDK_UpdateAdapterMgr(32487): onActivityCreate

I/HMSSDK_HMSPackageManager(32487): Enter getHMSPackageName

E/HMSSDK_HMSPackageManager(32487): <initHmsPackageInfo> Failed to find HMS apk

I/HMSSDK_UpdateAdapter(32487): target HMS Core packageName is com.huawei.hwid

E/HMSSDK_UpdateAdapter(32487): copy assets hms.apk error: com.huawei.hms/hms.apk

I/HMSSDK_UpdateAdapter(32487): old framework HMSCore upgrade process

E/HMSSDK_SystemUtils(32487): isSystemApp Exception: android.content.pm.PackageManager$NameNotFoundException: com.huawei.appmarket

I/HMSSDK_UpdateManager(32487): app is: com.huawei.appmarket;status is:NOT_INSTALLED

I/HMSSDK_UpdateManager(32487): In getAndroidMarketSetting, configuration not found for android channel market setting.

I/HMSSDK_UpdateManager(32487): typeList is empty, no upgrade solution

E/HMSSDK_BridgeActivity(32487): An exception occurred while reading: onApplyWindowInsetscom.huawei.android.view.WindowManagerEx$LayoutParamsEx

W/ActivityThread(32487): handleWindowVisibility: no activity for token android.os.BinderProxy@47a45e3

I/HMSSDK_BridgeActivity(32487): BridgeActivity onCreate

I/PhoneWindow(32487): initSystemUIColor

E/HMSSDK_BridgeActivity(32487): An exception occurred while reading: setDisplaySideModecom.huawei.android.view.WindowManagerEx$LayoutParamsEx

E/HMSSDK_BridgeActivity(32487): In initialize, Failed to create 'IUpdateWizard' instance.Invalid name: 

I/HMSSDK_BridgeActivity(32487): Enter finish.

I/HMSSDK_UpdateAdapter(32487): onBridgeActivityResult 1

I/HMSSDK_BaseHmsClient(32487): notifyFailed result: 28

I/HMSSDK_HuaweiApiManager(32487): onConnectionFailed

I/HMSSDK_BridgeActivity(32487): Enter finish.

I/HMSSDK_Util(32487): available exist: true

I/HMSSDK_TaskApiCall(32487): doExecute, uri:site.textSearch, errorCode:907135003, transactionId:105266453Search20220107181118011173717

E/HmsSiteKit_TextSearchTaskApiCall_69(32487): responseErrorCode errorCode = 907135003 errorReason = Connection Failed:unknown errorReason(28)

I/HMSSDK_BaseHmsClient(32487): Enter disconnect, Connection Status: 5

D/HMSLogger(32487): singleEventMap -> {apiName=textSearch, package=com.logan.flutter_app, cpAppVersion=1.0.0, version=6.0.1.303, platform=Flutter, result=907135003, costTime=563, service=Cross-Platform, kit=Site, appid=105266453, model=1935, networkType=WIFI, callTime=1641559278444}

E/flutter (32487): [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: PlatformException(907135003, 907135003, null, null)

E/flutter (32487): #0      StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:607:7)

E/flutter (32487): #1      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:167:18)

E/flutter (32487): <asynchronous suspension>

E/flutter (32487): #2      SearchService.textSearch (package:huawei_site/search_service.dart:47:41)

E/flutter (32487): <asynchronous suspension>

E/flutter (32487): #3      _MyHomePageState.textSearch (package:flutter_app/main.dart:92:35)

E/flutter (32487): <asynchronous suspension>

E/flutter (32487): 

I/HMSSDK_UpdateAdapter(32487): onBridgeActivityDestroy

I/HMSSDK_UpdateAdapterMgr(32487): onActivityDestroy

I/HMSSDK_UpdateAdapterMgr(32487): reset


Can someone help me out? Thanks in advance.

Featured Answers

Recommended answer

Thomas_Tan
Admin Created Jan 7, 2022 13:01:40

Dear user,

Thanks for reaching out to us. We are sorry for the inconvenience caused. Since you are visiting our Enterprise product page, we would suggest a visit to our page dedicated to personal devices to better solve this question.

We have the Huawei Community support (https://consumer.huawei.com/en/community/list/?forumId=10014), where you can get the answer online and also service hotlines for each country or region. You can get the regional hotline number via https://consumer.huawei.com/en/support/hotline.

View more
  • x
  • convention:

nochhie
nochhie Created Jan 7, 2022 13:45:03 (0) (0)
 
All Answers

Dear user,

Thanks for reaching out to us. We are sorry for the inconvenience caused. Since you are visiting our Enterprise product page, we would suggest a visit to our page dedicated to personal devices to better solve this question.

We have the Huawei Community support (https://consumer.huawei.com/en/community/list/?forumId=10014), where you can get the answer online and also service hotlines for each country or region. You can get the regional hotline number via https://consumer.huawei.com/en/support/hotline.

View more
  • x
  • convention:

nochhie
nochhie Created Jan 7, 2022 13:45:03 (0) (0)
 
GOOD
View more
  • x
  • convention:

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.