【错误记录】jcenter 移除问题 ( Please remove usages of `jcenter()` Maven repository from your build scripts )
生活随笔
收集整理的這篇文章主要介紹了
【错误记录】jcenter 移除问题 ( Please remove usages of `jcenter()` Maven repository from your build scripts )
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
文章目錄
- 一、報(bào)錯(cuò)信息
- 二、解決方案
一、報(bào)錯(cuò)信息
報(bào)錯(cuò)信息 :
Please remove usages of `jcenter()` Maven repository from your build scripts and migrate your build to other Maven repositories. This repository is deprecated and it will be shut down in the future. See http://developer.android.com/r/tools/jcenter-end-of-service for more information. Currently detected usages in: root project 'Application', project ':app' Affected Modules: app機(jī)翻僅做參考 :
請(qǐng)從構(gòu)建腳本中刪除“jcenter()”Maven repository的用法, 并將構(gòu)建遷移到其他 Maven repository。 此存儲(chǔ)庫已棄用,將在將來關(guān)閉。 看見 http://developer.android.com/r/tools/jcenter-end-of-service 了解更多信息。 當(dāng)前在以下項(xiàng)目中檢測到用法:根項(xiàng)目“Zapp”,項(xiàng)目:應(yīng)用程序 受影響模塊:應(yīng)用程序二、解決方案
上述報(bào)錯(cuò)只是進(jìn)行提示 , jcenter 馬上要停止維護(hù)并關(guān)閉 ,
目前只能使用
repositories {google()mavenCentral()}這兩個(gè) Maven 倉庫 ;
將 build.gradle 中的 jcenter() 注釋掉 , 上述報(bào)錯(cuò)消失 ;
移除 jcenter 會(huì)造成相關(guān)依賴庫無法下載 , 可能需要手動(dòng)添加依賴 ;
總結(jié)
以上是生活随笔為你收集整理的【错误记录】jcenter 移除问题 ( Please remove usages of `jcenter()` Maven repository from your build scripts )的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 【Android Gradle 插件】P
- 下一篇: 【错误记录】未安装该应用 ( 在 And