skip to Main Content

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


  1. 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:

    buildscript {
        repositories {
            google()
            jcenter()
        }
        dependencies {
            classpath 'com.android.tools.build:gradle:7.0.4'
        }
    }
    
    Login or Signup to reply.
  2. 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

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search