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.