I am using gradle version 7.0 and plugin version 7.0.4 (using java language)
I had an error with title projectname failed. And no other information involved.
I changed gradle to version 7 and now I have an error :
Plugin[id: 'com.android.application' version 7.0.4 apply:false] was not found in any of the following sources
I changed gradle version but It still has the same error
2
Answers
Ensure that the Android Gradle Plugin version matches the Gradle version you’re using. In your project’s
build.gradle
file, you should have something like this:Check the compatibility of your Gradle version with the Gradle plugin and your Android Studio version in the tables on following page:
Android Gradle plugin release notes