Unable to resolve all dependencies in android studio 3.0.1

只谈情不闲聊 提交于 2019-12-02 08:53:07

I have same issue after updating AS to 3.1.3 Issues with me:

I am getting these errors while syncing gradle:-

Error:Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve xxx.

Error:Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve xxx.

Error:Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve xxx.

Error:Unable to resolve dependency for ':app@releaseUnitTest/compileClasspath': Could not resolve xxx.

Error:Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve xxx.

Solution for fix this issue:

1. Check proxy in SDK Manager > Appearance & Behavior > System Settings>HTTP Proxy. Auto-detect proxy settings should be checked.

2. Default settings Build, Execution, Deployment > Build Tools > Gradle Uncheck Offline work.

3. In left side panel select Project explorer > Android Check Gradel Scripts dir. look for cradle.properties (Global Properties) It contains proxy added properties please do commented all of them.

Try to clean and build.

Now check all dependencies resolve.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!