• android Studio 出现:Unable to resolve dependency for ':app@debug/compileClasspath'


    li经千辛万苦,我的新工程gradle搞定了

    但是却在变异的时候告诉我

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

    等等,导致我的所有的依赖都拿不下来

    我去,这不是要我的命吗

    然后又是一番折腾,但是好在有贵人相助,wanAndroid群里一位大佬发了一个链接,说让我按照这个链接里的方法试试,

    说了那么多,都是抛砖引玉

    https://www.jianshu.com/p/0d0ebb86dd17?utm_campaign=haruki&utm_content=note&utm_medium=reader_share&utm_source=qq

    嗯,就这样,这就是大佬的解决办法。

    主要是就是使用了 proxy 

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

    这个代理导致,所以在C盘:用户/用户名/目录下找到.gradle文件夹里的gradle.properties 文件注释掉prox使用即可

    ## 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

    如图最下面两行被注释了,你按照这个试试,就行了

    OK!大功告成

  • 相关阅读:
    删除git上已经提交的文件
    spark安装
    Ganglia+nagios 监控hadoop资源与报警
    自定义标签库开发与el表达式
    JavaBean与MVC
    Jsp-查漏补缺
    HttpSession
    Cookie
    HttpServleRequest
    Servlet学习-查漏补缺
  • 原文地址:https://www.cnblogs.com/fengfenghuifei/p/10098054.html
Copyright © 2020-2023  润新知