在一次编译过程中发现有以下提示:

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.See https://docs.gradle.org/7.3.3/userguide/command_line_interface.html#sec:command_line_warnings

大概意思就是当前的版本有些api会在gradle8.0中移除。详情可以使用命令行--warning-mode all进行查看。
所以在终端执行以下命令:

gradle --warning-mode all

得到以下结果:

rockey211119@rockey211119s-MacBook-Pro RockeyClean % gradle --warning-mode all
Starting a Gradle Daemon (subsequent builds will be faster)
The RepositoryHandler.jcenter() method has been deprecated. This is scheduled to be removed in Gradle 8.0. JFrog announced JCenter's sunset in February 2021. Use mavenCentral() instead. Consult the upgrading guide for further information: https://docs.gradle.org/7.3/userguide/upgrading_version_6.html#jcenter_deprecationat settings_ced5934gp3ys17aor5yf3drv7$_run_closure1$_closure2.doCall(/Users/rockey211119/Documents/Android/AndroidWorkSpace/RockeyClean/settings.gradle:6)(Run with --stacktrace to get the full stack trace of this deprecation warning.)> Configure project :app
WARNING:The option setting 'android.enableR8.fullMode=true' is experimental.
The current default is 'false'.> Task :helpWelcome to Gradle 7.3.To run a build, run gradle <task> ...To see a list of available tasks, run gradle tasksTo see more detail about a task, run gradle help --task <task>To see a list of command-line options, run gradle --helpFor more detail on using Gradle, see https://docs.gradle.org/7.3/userguide/command_line_interface.htmlFor troubleshooting, visit https://help.gradle.orgBUILD SUCCESSFUL in 6s
1 actionable task: 1 executed

根据提示知道RepositoryHandler.jcenter()函数将在gradle8.0被移除。需要使用mavenCentral()替换。
搜索全局jcenter()。通常都在build.gradle文件中。进行替换。不过通常会出现问题,因为这是个依赖仓库,有些仓库还没有迁移到maven。所以可能会出问题。剩下的就根据具体问题进行具体解决

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.相关推荐

  1. Deprecated Gradle features were used in this build, making it incompatible with Gradle

    在运行react-native项目的时候,突然报了一个这个错误, Deprecated Gradle features were used in this build, making it incom ...

  2. Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.

    最近更新andorid studio 为3.4.1出现了如下问题 Deprecated Gradle features were used in this build, making it incom ...

  3. Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0.

    gradle  refresh gradle project 的时候出现的问题,字面上解释是 "在此版本中使用了不推荐使用的Gradle功能,使其与Gradle 5.0不兼容." ...

  4. RN报错:Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.

    我运行了一个正常的项目,然后回过头来运行这个项目就好了,我也不知道为啥... 步骤 1.运行 yarn start 也就是 react-native start 2.打开Android Studio ...

  5. 【错误记录】Android Studio 编译报错 ( Deprecated Gradle features were used in this build, making it incompat )

    文章目录 一.报错信息 二.解决方案 一.报错信息 使用 Android Studio 编译比较老的 Android 项目时 , 报如下错误 : FAILURE: Build failed with ...

  6. 学习笔记 - 5步理解Gradle. How build execution is controlled by gradle tasks?

    https://docs.gradle.org/current/userguide/tutorial_using_tasks.html#sec:projects_and_tasks https://d ...

  7. Gradle sync failed: failed to find Build Tools revision 21.1.2

    从github上下载了一个开源项目到Android Studio 出现以下问题: 下午2:56:05 Gradle sync started 下午3:00:11 Gradle sync failed: ...

  8. Error:Internal error: org.gradle.tooling.BuildException: Could not run build action using Gradle dis

    看下报错信息: Error:Internal error: org.gradle.tooling.BuildException: Could not run build action using Gr ...

  9. linux android build tools,build.gradle 文件中的 Android SDK Build Tools version

    build.gradle 文件中的 Android SDK Build Tools version Android,Gradle,SDK 2018.07.17 在 Android Gradle Plu ...

最新文章

  1. 正直摄影方式的精度估算式_[公务员考试]数量关系——估算法与直除法
  2. c++中类的构造函数的初始化成员列表详解
  3. 修改注册表后不重启计算机边生效(转)
  4. Python+Anaconda+PyCharm的安装和基本使用
  5. sql server 2008学习4 设计索引的建议
  6. hdu-4451-Dressing
  7. creo动画如何拖动主体_Animate如何制作动态遮罩文字动画
  8. python-main
  9. sql server 加密_SQL Server机密–第一部分–加密基础知识和SQL Server加密功能
  10. Ubuntu MySQL性能_入门系列之在Ubuntu上使用MySQL设置远程数据库优化站点性能
  11. 更自由的阿里云API工具JCLI
  12. 机器学习sklearn
  13. 手机QQ Hybrid 的架构演进
  14. java定义不同类型参数_java – Mockito允许使用不同的参数类型来模拟重载方法
  15. 南柯服务器压力,从纳兰性德《木兰花》中看网络暴力和舆论压力带来的抑郁现象...
  16. 计算机专业surface pro,surface pro4家庭版和专业版的不同
  17. 在树莓派Raspbian/Debian 10 Buster上安装ROS
  18. 基于SpringBoot旅游信息管理系统
  19. 在这求1到5的阶乘和
  20. win7 笔记本开启虚拟WiFi

热门文章

  1. Python编程快速上手-让繁琐工作自动化第二版
  2. EAUML日拱一卒-0基础学习微信小程序(3)- 创建自己的小程序账号
  3. bitwise const和logic constness---龙之介《Effective C++》实验室
  4. 如何下载不同格式的卫星地图
  5. Python学习:学员管理系统
  6. PMBOK(项目管理知识体系)
  7. 【点云鸟瞰图BEV】点云鸟瞰图BEV原理与可视化
  8. 蓝牙耳机突然掉落了,怎么快速找到?
  9. dell 7559 2548B加装固态硬盘安装完系统进不了OS
  10. 流量/流速单位动态换算