Tag Archives: Unable to resolve dependency for ‘:app@debug/compileClasspath’

Android Studio Error:Unable to resolve dependency for ‘:app@debug/compileClasspath’

Unable to resolve dependency for ‘ :app@debug/compileClasspath ‘xxx

Wait a minute. I can’t get all my dependence

Then there was another toss, but fortunately, with the help of a noble person, a big man in the Android group sent a link, saying that I would try the method in this link

=reader_share&utm_source=qq

Well, that’s it. That’s the big man’s solution

The main reason is the use of proxy

systemProp.https.proxyHost=mirrors.neusoft.edu.cn
systemProp.http.proxyPort=80

This agent causes, so find the gradle.properties file in the. Gradle folder on Disk C: user/user name/directory, comment out prox and use it

## For more details on how to configure your build environment visit
# http://www.gradle.org/docs/current/userguide/build_environment.html
#
# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
# Default value: -Xmx1024m -XX:MaxPermSize=256m
# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
#
# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true
#Mon Dec 10 12:56:38 CST 2018
#systemProp.http.proxyHost=mirrors.neusoft.edu.cn
#systemProp.https.proxyPort=80

As shown in the figure, the bottom two lines are annotated. Just try this one

OK! It’s done