I am implementing Huawei Awareness Kit from github in flutter. With updated version in gradle that says "A newer version of com.huawei.agconnect:agcp than is available:".After updating to new version and when clicking the "query capabilities demo" button ,the app getting crash.

Solution 1: Punit Kumar Gupta

1-Check build.gradle in the project, whether the code of the agc plugin is configured "apply plugin:'com.huawei.agconnect" 2-add below plugin in app level - build.gradle: apply plugin: 'com.huawei.agconnect'

and you can try below solutions.

  1. Check whether the related ability switch of AppGallery Connect console is turned on;
  2. Whether agconnect-services.json has been updated after turning on the switch;