Could not find com.android.tools.build:gradle:3.0.1

时间:2023-02-02 22:52:54

Could not find com.android.tools.build:gradle:3.0.1

 

buildscript {
     repositories {
         jcenter()
      }
     dependencies {
         classpath 'com.android.tools.build:gradle:3.0.1'
 
         // NOTE: Do not place your application dependencies here; they belong
         // in the inpidual module build.gradle files
     }
}
 
 
 
添加
buildscript {
     repositories {
         jcenter()
         maven {
             url 'https://maven.google.com'
         }
     }
     dependencies {
         classpath 'com.android.tools.build:gradle:3.0.1'
 
         // NOTE: Do not place your application dependencies here; they belong
         // in the inpidual module build.gradle files
     }
}