Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while updating dependency to 2.0.0 #42

Closed
bhavinmdesai opened this issue Sep 2, 2021 · 4 comments
Closed

Error while updating dependency to 2.0.0 #42

bhavinmdesai opened this issue Sep 2, 2021 · 4 comments
Assignees

Comments

@bhavinmdesai
Copy link

After I update the dependency version from 1.3.0 to 2.0.0, I am getting following error after Gradle sync

Unable to load class 'com.android.build.api.variant.AndroidComponentsExtension'.

This is an unexpected error. Please file a bug containing the idea.log file.

Additional information:

  • Gradle build tool version: 4.2.2
  • Gradle wrapper: 7.0.2
@nsekhar90
Copy link

having the same issue

@arriolac arriolac self-assigned this Sep 20, 2021
@arriolac
Copy link
Collaborator

What version of AGP are you using? 2.0.0 requires AGP version 7.0.0

In your project-level build.gradle file:

buildscript {
    dependencies {
        classpath "com.android.tools.build:gradle:7.0.0"
    }
}

@arriolac
Copy link
Collaborator

@bhavinmdesai and @nsekhar90 following up, is this still an issue for both of you?

@bhavinmdesai
Copy link
Author

@arriolac Tried on 7.0.2 and it is working as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants