HarmonyOS 鸿蒙Next无法上报数据,集成崩溃与性能监测。

发布于 1周前 作者 gougou168 来自 鸿蒙OS

HarmonyOS 鸿蒙Next无法上报数据,集成崩溃与性能监测。

当应用点击按钮出发testit方法时,控制台显示如下报错。

E/[AGC_LOG]AGConnectCrashHandler: exception catch:'java.lang.NullPointerException: ’ from thread main

W/ine.mobile_test: Unresolved exception class when finding catch block: com.huawei.android.util.NoExtAPIException

W/Emui10RootDetect: NoClassDefFoundError : Failed resolution of: Lcom/huawei/android/os/BuildEx$VERSION;

I/HMSSDK_l: secretKeyCache not empty.

I/HMSSDK_l: The local secret is already in separate file mode.

I/HMSSDK_HMSPackageManager: Enter getHMSPackageNameForMultiService

E/HMSSDK_HMSPackageManager: query hms action, resolveInfoList is null or empty.

E/HMSSDK_HMSPackageManager: query aglite action, resolveInfoList is null or empty

E/HMSSDK_HMSPackageManager: PackagePriorityInfo list is null

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

I/HMSSDK_HMSPackageManager: return default packageName: com.huawei.hwid

I/HMSSDK_HMSBIInitializer: Builder->biInitFlag :false

I/HMSSDK_Util: available exist: true

I/HMSSDK_AvailableUtil: asyncCheckHmsUpdateInfo, not need to check

W/ine.mobile_test: No such thread for suspend: 0x*********:SharedPreferencesImpl-load

W/InputStreamReader: JSONException when reading ‘path’: /service/analytics/resource_id

I/[AGC_LOG]UploadFile: uploadTask start

I/[AGC_LOG]BackendServiceImpl: sendRequest2

I/[AGC_LOG]AGCHost: getCachedHostAsync

I/[AGC_LOG]AGCHost: isTTLValid false:1722******

W/InputStreamReader: JSONException when reading ‘path’: /agcgw/url

W/InputStreamReader: JSONException when reading ‘path’: /agcgw/backurl

I/[AGC_LOG]CredentialsProviderImpl: onComplete

I/[AGC_LOG]UploadFile: getClientToken finished

W/ine.mobile_test: Attempt to remove non-JNI local reference

E/[AGC_LOG]AGConnectCrashHandler: is handling exception

仔细会看之前日志,有

I/[AGC_LOG]AGConnectCrashRegistrar: AGCInitFinishCallback

I/AGC_Instance: AGC SDK initialize end

D/AGC_ConfigImpl: initConfigReader

D/AGC_FlexibleDecrypt: init

D/AGC_Keys: build aes key, iterationCount:1

D/AGC_Keys: build aes key end

I/AGConnectInstance: AGConnectInstance#initialize with options

W/InputStreamReader: JSONException when reading ‘path’: /region

W/InputStreamReader: JSONException when reading ‘path’: /agcgw/url

D/AGC_Instance: AGConnectInstanceImpl init

D/AGC_ServiceRepository: addService start

D/AGC_ServiceRepository: addService end

D/AGC_ServiceRepository: addService start

D/AGC_ServiceRepository: addService start

D/AGC_ServiceRepository: addService end

I/HiAnalyticsSDK: =======================================

     HiAnalyticsSDK_6.12.0.300

    =======================================

W/HiAnalyticsSDK: IncidentFilter=> Class not found warning

W/HiAnalyticsSDK: IncidentAdapter=> Class not found warning

W/HiAnalyticsSDK: IncidentAdapter=> Class not found warning

D/HiAnalyticsSDK: InitializeCallback=> application is null or has registered.

W/HiAnalyticsSDK: HiAnalyticsCreation=> not find analytics plugin

D/HiAnalyticsSDK: OpennessInitTask=> init running

W/InputStreamReader: JSONException when reading ‘path’: /service/analytics/resource_id

W/InputStreamReader: JSONException when reading ‘path’: /region

W/InputStreamReader: JSONException when reading ‘path’: /service/analytics/collector_url

W/InputStreamReader: JSONException when reading ‘path’: /service/analytics/collector_url_cn

W/InputStreamReader: JSONException when reading ‘path’: /service/analytics/collector_url_de

W/InputStreamReader: JSONException when reading ‘path’: /service/analytics/collector_url_ru

W/InputStreamReader: JSONException when reading ‘path’: /service/analytics/collector_url_sg

I/HMSSDK_HianalyticsExist: In isHianalyticsExist, Failed to find class HiAnalyticsConfig.

E/HiAnalyticsSDK: TokenAssignment=> SE-003|get token exception on the AGC! com.huawei.agconnect.exception.AGCServerException:  code: 5 message: url is null

I/HiAnalyticsSDK: regionReport=> no have last region data. tag: APMS

E/HiAnalyticsSDK: connectInit=> SE-001|APMS instance config init failed! Config json error, please check collector url from region: 

I/HiAnalyticsSDK: regionReport=> no have last region data. tag: AGC_TAG

E/HiAnalyticsSDK: connectInit=> SE-001|AGC_TAG instance config init failed! Config json error, please check collector url from region: 

I/HiAnalyticsSDK: regionReport=> no have last region data. tag: Crash_TAG

E/HiAnalyticsSDK: connectInit=> SE-001|Crash_TAG instance config init failed! Config json error, please check collector url from region: 

E/HiAnalyticsSDK: TokenAssignment=> SE-003|get token exception on the AGC! com.huawei.agconnect.exception.AGCServerException:  code: 5 message: url is null

I/[AGC_LOG]AGConnectCrashHandler: record last crash handler:org.chromium.base.JavaExceptionReporter

I/[AGC_LOG]HaConnector: Auto onReport

I/HiAnalyticsSDK: InteractionManager=> connectManager onReport

I/[AGC_LOG]HaConnector: Auto onReport

I/HiAnalyticsSDK: InteractionManager=> connectManager onReport

I/[AGC_LOG]HaConnector: Auto onReport

I/HiAnalyticsSDK: InteractionManager=> connectManager onReport

I/[AGC_LOG]HaConnector: Auto onReport

I/HiAnalyticsSDK: InteractionManager=> connectManager onReport

I/[AGC_LOG]UploadFile: upload crash files, size:6

2 回复

您好,您的问题需进一步分析,请您至工单咨询,会有技术人员和您对接:https://developer.huawei.com/consumer/cn/support/feedback/#/,感谢您的支持~

针对HarmonyOS 鸿蒙Next无法上报数据,集成崩溃与性能监测的问题,可能是配置或代码集成有误。请检查以下几点:

  1. 确保已正确集成崩溃与性能监测的SDK或API。
  2. 检查配置文件,确保相关权限和设置已正确配置。
  3. 查看日志,分析是否有错误信息或异常提示。
  4. 验证网络连接,确保设备能够正常上报数据。

如果以上步骤均无法解决问题,建议检查官方文档或社区论坛,查看是否有类似问题的解决方案。如果问题依旧没法解决,请加我微信,我的微信是itying888。

回到顶部