9

I'm getting this error with Gradle 7.0 while it was working fine for 6.8.3

agcp-gradle-7-error

AGCPlugin

FAILURE: Build failed with an exception.

  • What went wrong: A problem was found with the configuration of task ':app:processDebugAGCPlugin' (type 'AGCPluginTask').
Moataz Mohamed
  • 107
  • 1
  • 9

2 Answers2

19

I no longer get any errors with:

classpath 'com.huawei.agconnect:agcp:1.5.2.300'

and

distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-all.zip
jayeffkay
  • 1,229
  • 1
  • 16
  • 22
  • 1
    The last version is not the com.huawei.agconnect:agcp:1.4.2.300 ? – aeroxr1 Jul 06 '21 at 09:39
  • Huawei documentations is not up to date https://developer.huawei.com/consumer/en/doc/development/HMS-Plugin-Guides/integrating-sdk-0000001051007083, they suggest classpath 'com.huawei.agconnect:agcp:1.4.2.301 The version in the accepted answer 'com.huawei.agconnect:agcp:1.5.2.300' works with Gradle 7 classpath 'com.android.tools.build:gradle:7.0.3' distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-all.zip – adrianvintu Nov 28 '21 at 16:04
0

Currently Gradle 7.0 is not supported. As I hear, it will be supported at the end of June.

mohax
  • 4,435
  • 2
  • 38
  • 85
  • thanks, but do you have any reference or any workaround for it? – Moataz Mohamed Apr 19 '21 at 12:42
  • 1
    @Moataz, it's everything, that I know. I create a ticket in AppGallery ticket system as developer and their TechnocalSupport gave me this answer. – mohax Apr 19 '21 at 12:51
  • @mohax I found such a ticket a while back, but kind find it anymore. Perhaps you can link it here? Edit: https://forums.developer.huawei.com/forumPortal/en/topic/0201542029574270175 – jayeffkay May 07 '21 at 16:31
  • @jayeffkay, ticket was not on forum, but in console built-in system, so only I can view it( – mohax May 07 '21 at 19:39