【错误记录】Android Studio 编译报错 ( Deprecated Gradle features were used in this build, making it incompat )
生活随笔
收集整理的这篇文章主要介绍了
【错误记录】Android Studio 编译报错 ( Deprecated Gradle features were used in this build, making it incompat )
小编觉得挺不错的,现在分享给大家,帮大家做个参考.
文章目录
- 一、报错信息
- 二、解决方案
一、报错信息
使用 Android Studio 编译比较老的 Android 项目时 , 报如下错误 :
FAILURE: Build failed with an exception.* What went wrong: A problem occurred configuring project ':app'. > A problem occurred configuring project ':liveRtmpPushSDK'.> Failed to notify project evaluation listener.> org.gradle.api.tasks.compile.CompileOptions.setBootClasspath(Ljava/lang/String;)V* Try: Run with --info or --debug option to get more log output. Run with --scan to get full insights.* Exception is: org.gradle.api.ProjectConfigurationException: A problem occurred configuring project ':app'.at org.gradle.configuration.project.LifecycleProjectEvaluator.wrapException(LifecycleProjectEvaluator.java:75)//...at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:56)* Get more help at https://help.gradle.orgBUILD FAILED in 8sDeprecated Gradle features were used in this build, making it incompatible with Gradle 7.0. Use '--warning-mode all' to show the individual deprecation warnings. See https://docs.gradle.org/6.7.1/userguide/command_line_interface.html#sec:command_line_warnings二、解决方案
选择 " 菜单栏 / File / Project Structure " 选项 ,
该 Android Gradle 插件 与 Gradle 版本 太低 ;
设置一个新的 Android Gradle 插件版本 和 Gradle 版本 ;
总结
以上是生活随笔为你收集整理的【错误记录】Android Studio 编译报错 ( Deprecated Gradle features were used in this build, making it incompat )的全部内容,希望文章能够帮你解决所遇到的问题。
- 上一篇: 【Android FFMPEG 开发】A
- 下一篇: 【错误记录】Android 中使用 Ko