【错误记录】jcenter 移除问题 ( Please remove usages of `jcenter()` Maven repository from your build scripts )
生活随笔
收集整理的這篇文章主要介紹了
【错误记录】jcenter 移除问题 ( Please remove usages of `jcenter()` Maven repository from your build scripts )
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
文章目錄
- 一、報錯信息
- 二、解決方案
一、報錯信息
報錯信息 :
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機翻僅做參考 :
請從構建腳本中刪除“jcenter()”Maven repository的用法, 并將構建遷移到其他 Maven repository。 此存儲庫已棄用,將在將來關閉。 看見 http://developer.android.com/r/tools/jcenter-end-of-service 了解更多信息。 當前在以下項目中檢測到用法:根項目“Zapp”,項目:應用程序 受影響模塊:應用程序二、解決方案
上述報錯只是進行提示 , jcenter 馬上要停止維護并關閉 ,
目前只能使用
repositories {google()mavenCentral()}這兩個 Maven 倉庫 ;
將 build.gradle 中的 jcenter() 注釋掉 , 上述報錯消失 ;
移除 jcenter 會造成相關依賴庫無法下載 , 可能需要手動添加依賴 ;
總結
以上是生活随笔為你收集整理的【错误记录】jcenter 移除问题 ( Please remove usages of `jcenter()` Maven repository from your build scripts )的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 【Android Gradle 插件】P
- 下一篇: 【错误记录】未安装该应用 ( 在 And