簡體   English   中英

無法解析外部依賴 com.android.tools.build:gradle:3.4.2 因為沒有定義存儲庫

[英]Cannot resolve external dependency com.android.tools.build:gradle:3.4.2 because no repositories are defined

在此處輸入圖像描述 我在一個老項目中將gradle版本升級到5.4.1,遇到如下問題。 項目參考地址為https://github.com/lyc7898/AndroidTech我修改了build.gradle文件的配置,如下圖

在您項目的build.gradle buildscript 中試試這個

    repositories {
        google()
        jcenter()
        mavenLocal()
        maven {
            url "https://plugins.gradle.org/m2/"
        }
    }

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM