* What went wrong:
A problem occurred configuring root project 'android'.
> Could not resolve all files for configuration ':classpath'.
> Could not resolve com.android.tools.build:gradle:3.0.0.
Required by:
project :
> Could not resolve com.android.tools.build:gradle:3.0.0.
> Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.0.0/gradle-3.0.0.pom'.
> Could not HEAD 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.0.0/gradle-3.0.0.pom'.
> dl.google.com
搜索了很久,大部门的解决方案都是在repositories
中加入google()
,实际并没有用。
后来想到可能是网络问题,于是将 android/build.gradle
android/app/build.gradle
android/CordovaLib/build.gradle
中 的所有 repositories
改为
repositories {
jcenter()
maven {
url "http://maven.aliyun.com/nexus/content/groups/public/"
然后就可以了。。。
Android平台app打包时遇到的问题:从Could not resolve com.android.tools.build:gradle:3.0.0.说起
weixin_42097173
3894次阅读
06-20
更新Android Studio版本出现Could not find com.android.tools.build:gradle:2.2.3
woyaoxianzaixiazai
1958次阅读
07-31
Android studio 升级3.0后ReactNative 打包报错 Could not find com.android.tools.build:gradle:3.0.0.
qq_22653803
1409次阅读
10-28
对于 Error:Could not find com.android.tools.build:gradle:3.0.0. 这种问题的解决方案
qq_23931287
721次阅读
04-03
在加载网上下载的项目时有时候会出现连接失败或者出现Android Studio:Gradle Refresh Failed - 找不到com.android.tools.build:gradle等问题
m0_37959831
315次阅读
09-05
Could not resolve all files for configuration ':classpath'.Could not find com.android.tools.
monkin2011
2.6万次阅读
11-10
jqm视频播放器,html5视频播放器,html5音乐播放器,html5播放器,video开发demo,html5视频播放示例,html5手机视频播放器
xmt1139057136
67030次阅读
06-21