久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

“JCenter 即將報廢"android lint 警告,替換是什

quot;JCenter is at end of lifequot; android lint warning, what is the replacement?(“JCenter 即將報廢android lint 警告,替換是什么?)
本文介紹了“JCenter 即將報廢"android lint 警告,替換是什么?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

Android Studio Arctic Fox Canary 8 開始警告 JCenter 生命周期結束

Android Studio Arctic Fox Canary 8 started to warn that JCenter is at end of life

但我不能只刪除 jcenter() 聲明,因為它承載了很多 android 工件,它會導致 Could not resolve all artifacts 錯誤.解決此警告的正確方法是什么?

But I cannot just delete jcenter() declarations since it hosts a lot of android artifacts, it would lead to Could not resolve all artifacts error. What is the right way to solve this warning?

推薦答案

有一個描述問題的文檔部分:JCenter 棄用和服務終止.您可以通過展開檢查說明 (Ctrl+F1) 找到該鏈接.文檔指出:

There's a documentation section describing the problem: JCenter deprecation and end of service. You can find the link by expanding the inspection description (Ctrl+F1). The documentation states:

JFrog,維護許多 Android 項目使用的 JCenter 工件存儲庫的公司,最近宣布了 JCenter 的棄用和即將退役.根據公告,JCenter 將允許在 2022 年 2 月 1 日之前下載現有工件.

JFrog, the company that maintains the JCenter artifact repository used by many Android projects, recently announced the deprecation and upcoming retirement of JCenter. According to the announcement, JCenter will allow downloads of existing artifacts until February 1, 2022.

在 JCenter 上發布工件的開發人員應該開始將他們的包遷移到新主機,例如作為 Maven 中心.

Developers who publish artifacts on JCenter should start migrating their packages to a new host, such as Maven Central.

在不久的將來,我們將提供有關將 Android 項目從此頁面上的 JCenter.

In the near future, we will provide additional information about migrating Android projects away from JCenter on this page.

擴展的檢查描述(以及上面的文檔)建議將 jcenter() 替換為 mavenCentral().實際上 JCenterMaven Central 的超集,但是在您的項目使用的所有 JCenter 工件都被移動之前,這樣的替換不會解決問題到 Maven 中心.

The expanded inspection description (as well as the documentation above) suggests to replace jcenter() by mavenCentral(). Acually JCenter is a superset of Maven Central, but such a replacement won't resolve the problem until all JCenter artifacts your project uses will be moved to Maven Central.

我認為最佳解決方案是等到您正在使用的庫從 jcenter() 移出并嘗試用 mavenCentral() 替換它.如果仍然缺少某些工件,請查看文檔,可能它們已移至另一個存儲庫,您也應該將其添加到 repositories 列表中.

I think the optimal solution would be to wait until the libraries you're using are moved from jcenter() and try to replace it with mavenCentral(). If some artifacts are still missing, take a look at the documentation, may be they are moved into another repository and you should add it to the repositories list as well.

repositories {
    google()

//  jcenter()       // <- removed
    mavenCentral()  // <- added
}

如果您是庫作者,您應該遷移到另一個 repo,可能是 Maven Central.請注意,根據 JCenter 棄用公告新的提交只允許在 2021 年 3 月 31 日之前提交.

If you're a library author you should migrate to another repo, probably it would be Maven Central. Note that according to the JCenter deprecation announcement new submissions are allowed only until March 31st 2021.

一些相關資源:

  • jCenter &Bintray 正在關閉.現在呢?
  • 從 JCenter 遷移

這篇關于“JCenter 即將報廢"android lint 警告,替換是什么?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

IncompatibleClassChangeError after updating to Android Build Tools 25.1.6 GCM / FCM(更新到 Android Build Tools 25.1.6 GCM/FCM 后出現 IncompatibleClassChangeError)
How to get current flavor in gradle(如何在 gradle 中獲取當前風味)
How to fix quot;unexpected element lt;queriesgt; found in lt;manifestgt;quot; error?(如何修復“意外元素lt;查詢gt;在“清單中找到錯誤?)
Multi flavor app based on multi flavor library in Android Gradle(基于 Android Gradle 中多風味庫的多風味應用)
Android dependency has different version for the compile and runtime(Android 依賴在編譯和運行時有不同的版本)
Transitive dependencies for local aar library(本地 aar 庫的傳遞依賴)
主站蜘蛛池模板: 福利视频一区二区 | 特级西西444www大胆免费看 | 日韩五十路 | 999久久久久久久久6666 | 欧美日韩国产在线观看 | 国产精品久久久久久久久久辛辛 | 久久精品中文 | 亚洲激情偷拍 | a毛片视频 | 成人国产精品一区二区 | av黄页| 黄av在线 | 高清一级片 | 午夜国产| 色婷婷一区二区三区四区 | 综合色av | 老女人毛片 | 国产在线观看网站 | 蜜桃视频成人 | 九九色综合 | 日本视频在线免费观看 | 欧美日韩小视频 | 91亚洲国产成人久久精品网站 | 午夜激情在线 | 国内精品一区二区 | 国语对白永久免费 | 日本视频在线播放 | 日本在线免费视频 | 国产精品久久午夜夜伦鲁鲁 | 久久久中文字幕 | 欧美午夜片| 天天色小说 | 日韩三级一区二区 | 成人小视频在线观看 | 久久不射网 | 日韩av成人在线 | 午夜视频免费看 | 老女人毛片 | 国产一区二区中文字幕 | 91精品国自产在线观看 | 日本a在线 |