Home > Mobile >  AS update problem, after the Run has been gray, can't get pom file
AS update problem, after the Run has been gray, can't get pom file

Time:09-27

求求各位大佬们,能否看看下面这几张图片咋解决,主要是想要知道:1,no devices咋解决,Run显示为灰色(之前安装了一个低版本的AS,今天重新又安装了最新版本的AS,看见有博主说重新安装的AS需要把以前的adb及相关文件卸载掉,再配置最新的adb,但是我的那个path路径设置的adb就是现在sdk的路径,通过命令显示devices未经许可,这个不知道是不是和run是灰色有关)2,报错:ERROR: Could not GET 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.5.2/gradle-3.5.2.pom'. Received status code 400 from server: Bad Request Enable Gradle 'offline mode' and sync project点击那个链接下载了包之后,我把包放在了c盘用户目录下面的.gradle文件中,整个路径就是:C:\Users\chendh\.gradle\wrapper\dists\gradle-5.4.1-all\3221gyojl5jsh0helicew7rwx这个样子的,不知道的这个包放在这里对不对可能我表述得有点乱,今天安装新版本之后接着一个一个报错,到现在这个问题找了很多博客真的解决不了了,有没有大佬可以救救我,,,,,被AS搞得真的是有点绝望了

CodePudding user response:

Was wall bai, you will be the root directory of the build gradle with two repositories such as follows:
 
Uildscript {
Repositories {
Maven {url 'http://maven.aliyun.com/nexus/content/groups/public/'}
Maven {url 'https://jitpack.io'}
Google ()
Jcenter ()
}
Dependencies {
The classpath 'com. Android. Tools. Build: gradle: 3.1.3'
.
}
}
Allprojects {
Repositories {
Maven {url 'http://maven.aliyun.com/nexus/content/groups/public/'}
Maven {url 'https://jitpack.io'}
Google ()
Jcenter ()
}
}


Or you wait for a period of time perhaps can access, or use the proxy

CodePudding user response:

Your network problems,,, back in domestic warehouse to download... Such as the appearance of the moderators upstairs,,,,
  • Related