Search code examples
androidsdkpushhuawei-mobile-servicesappgallery

Huawei push and SDK statistics issues


Why access Huawei Push and SDK statistics report " java.lang.RuntimeException: Unable to get provider com.huawei.agconnect.core.provider.AGConnectInitializeProvider: java.security.InvalidParameterException: url is null "?

Access mode:

implementation'com.huawei.hms:push:4.0.3.300' 

implementation 'com.huawei.hms:hianalytics:5.0.0.301'

Solution

  • You have integrated the Huawei Analytics kit and Push services. The analysis kit requires developers to select a data storage location. The related information is stored in the agconnect-services.json file. After the analysis kit function is enabled and the storage location is configured, download the JSON file again and integrate it to the project.