久久久久久久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 庫的傳遞依賴)
主站蜘蛛池模板: 最近日韩中文字幕 | 国产精品久久国产精品 | 亚洲在线中文字幕 | 韩国精品一区二区三区 | av中文字幕在线观看 | 在线看av的网址 | 亚洲激情一区二区 | 日本久久一区 | 国产成人精品久久二区二区91 | 偷拍亚洲色图 | 国产91亚洲精品一区二区三区 | 日韩高清黄色 | 亚洲区一 | 亚洲精品一区二三区不卡 | 综合久久综合久久 | 亚洲免费在线 | 亚洲欧美一区二区三区国产精品 | 91九色在线观看 | 久久精品国产一区 | 久久爱黑人激情av摘花 | 成人精品鲁一区一区二区 | 日本福利在线观看 | 91亚洲国产成人久久精品网站 | 综合久久av | 亚洲精品视频免费看 | 欧美在线a| 日韩日韩日韩日韩日韩日韩日韩 | 一区二区三区不卡视频 | 欧美中文字幕一区 | 九色91视频 | 狠狠操av | 啪一啪在线视频 | 色综合色综合色综合 | 日韩精品一区二区三区中文在线 | 国产目拍亚洲精品99久久精品 | 亚洲一区二区视频 | 亚洲国产精品视频 | 乱一性一乱一交一视频a∨ 色爱av | 午夜爽爽爽男女免费观看影院 | 久久午夜剧场 | 国产一区二区在线观看视频 |