美文网首页
Could not resolve XXXXX

Could not resolve XXXXX

作者: 达布遛 | 来源:发表于2020-12-17 18:14 被阅读0次

    最近项目突然不能编译,使用离线的gradle可以安装到手机,但是打包时却报错,could not resolve XXX。

    因为本身已经是翻墙的,排错之后设置代理,发现还是不幸,最后查看.gradle目录,多了一个gradle.properties配置,并不是项目里的gradle.properties。一般windows系统在文档 .gradle目录,mac和 linux 在根目录,是隐藏的。

    里面文件如下

    ## 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
    #Thu Dec 17 17:52:33 CST 2020
    

    注意这行。
    http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
    我这里翻墙之后只需要把 http改成https 就可以成功运行了

    相关文章

      网友评论

          本文标题:Could not resolve XXXXX

          本文链接:https://www.haomeiwen.com/subject/nlnzgktx.html