【错误记录】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
- 下一篇: 【Linux 内核】Linux 内核源码