Harsha Sharma
Harsha Sharma

Reputation: 71

Failed to apply plugin [class 'com.android.build.gradle.api.AndroidBasePlugin'] in android studio

I have installed latest Android Studio 3.0 Canary 5

Here's the error:

Failed to apply plugin [class 'com.android.build.gradle.api.AndroidBasePlugin'] Android Gradle plugin 3.0.0-alpha5 must not be applied to project [projectPath] since version 3.0.0-alpha5 was already applied to this project.

I have tried all solutions: cleaning, rebuilding, opening/closing, Invalidate caches. But it's not working. Any solution ? Thanks in advance.

Upvotes: 1

Views: 1386

Answers (1)

Nitin Patel
Nitin Patel

Reputation: 1651

Try this way:-

1) Kill the daemons by run this command in terminal:

./gradlew --stop

2) Then restart pc or laptop.

Upvotes: 1

Related Questions