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
Similar Posts:
- [Solved] Android Studio Error: “Cause: dl.google.com:443 failed to respond”
- Android ERROR: This version of Android Studio cannot open this project, please retry with Android Studio 3.6 or newer.
- An error is reported when eclipse uses gradle to build the system
- How to Solve Android Startup Error: unable to access android sdk add-on list
- Plugin is too old, please update to a more recent
- Could not find tools.jar when build gradle project
- Android studio import project, error e rror:Unsupported method : BaseConfig.getApplicationIdSuffix().
- Tensorflow Warning: cona The environment is inconsistent, please check the package plan carefully
- Flutter: Android dependency ‘com.android.support:support-v4’ has different version …
- [Mac] How to Solve Android Studio error: Unable to access Android SDK add-on list