【问题标题】:Gradle Dependecies Command cant find other maven repos [duplicate]Gradle Dependencies 命令找不到其他 Maven 存储库 [重复]
【发布时间】:2017-12-27 14:41:09
【问题描述】:

我想检查我的项目依赖关系,但运行时遇到问题

./gradlew app:依赖项

这是终端的结果。

感谢您的帮助。

【问题讨论】:

    标签: android gradle dependencies gradlew


    【解决方案1】:

    我只需要将新的 google repo 添加到根 gradle 文件。

    buildscript {
    repositories {
        ...
        // You need to add the following repository to download the
        // new plugin.
        google()
    }
    
    dependencies {
        classpath 'com.android.tools.build:gradle:3.0.0-alpha5'
    }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2015-08-03
      • 2015-04-26
      • 2017-12-26
      • 2014-11-02
      • 1970-01-01
      • 2015-04-24
      • 1970-01-01
      相关资源
      最近更新 更多