Could not find com.android.tools.build:gradle:3.0.1
2017-12-27 23:53
501 查看
更新gradle后运行应用,报错。
解决办法:
提示找不到gradle:3.0.1
在顶层build.gradle 中,可以看到build.gradle的配置:
需要做的修改:添加maven仓库,即在repositories中添加
修改后
这里可以对比一下2.2.3的配置
解决办法:
提示找不到gradle:3.0.1
在顶层build.gradle 中,可以看到build.gradle的配置:
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 individual module build.gradle files } } ...
需要做的修改:添加maven仓库,即在repositories中添加
maven { url 'https://maven.google.com' }
修改后
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 individual module build.gradle files
}
}
这里可以对比一下2.2.3的配置
buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle:2.2.3' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } } ...
相关文章推荐
- Gradle sync failed: Could not find com.android.tools.build:gradle:2.2.3
- Error:Could not find com.android.tools.build:gradle:3.0.0
- could not find com.android.tools.build:gradle:2.2.3
- 解决 Could not find com.android.tools.build:gradle 问题
- Android 解决Could not find com.android.tools.build:gradle
- Failed to apply plugin [id 'com.android.application'] 和 Could not find com.android.tools.build:gradle:2.XX的最正确的解决方法
- Android Studio:Error:Could not find com.android.tools.build:gradle:XXX解决方法
- Android Studio Error:Could not find com.android.tools.build:gradle
- 更新Android Studio版本出现Could not find com.android.tools.build:gradle:2.2.3
- 【AndroidStudio】Error:Could not find com.android.tools.build:gradle:2.3.3
- Android Studio下项目编译出错could not find com.android.tools.buildgradle:2.2.2
- Could not find com.android.tools.build:gradle:3.0.0-alpha3
- AndroidStudio 报错:Could not find com.android.tools.build:gradle
- Android Studio下“Error:Could not find com.android.tools.build:gradle:2.2.1”的解决方法
- Error:Could not find com.android.tools.build:gradle:3.0.0-alpha7
- Android studio 升级3.0后ReactNative 打包报错 Could not find com.android.tools.build:gradle:3.0.0.
- Could not find com.android.tools.build:gradle:3.0.0.
- Could not find com.android.tools.build:gradle:3.0.0.
- Android开发:android studio启动后,报错:Could not find com.android.tools.build:gradle
- Android Studio下“Error:Could not find com.android.tools.build:gradle:2.2.1”的解决方法