新建工程bulid正常,打开旧项目/重启AS后Gradle报错
androidstudio吧
全部回复
仅看楼主
level 1
NB小雄 楼主
ERROR: Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not resolve
ERROR: Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve
ERROR: Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve
LOG:
2020/03/27
11:55Gradle sync started
11:55* daemon not running; starting now at tcp:5037
11:55* daemon started successfully
11:56Android Studio and Gradle are using different locations for the JDK.
Android Studio: D:\Andriod Studio\jre
Gradle: F:\jdk_9
Using different JDK locations might cause Gradle to spawn multiple daemons
when executing tasks for Android Studio and other external processes.
More info...
Select a JDK from the File System
Do not show this warning again
11:56Gradle sync failed: Unresolved dependencies (25 s 711 ms)
2020年03月27日 03点03分 1
level 3
一样的问题 返回旧版的as就好了
2020年04月01日 05点04分 2
level 1
解决了吗楼主
2020年05月01日 09点05分 3
Gradle的问题,我删除然重启再下载就好了
2020年05月06日 06点05分
1