簡體   English   中英

React Native:Task:app:installDebug FAILED Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0

[英]React Native : Task :app:installDebug FAILED Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0

我正在嘗試創建一個反應原生項目我有 2 android 設備 1 正在運行 android 9 和 1 正在運行 android 12 我的應用程序正在安裝並運行在具有 android 9 的設備上但我的應用程序沒有在 android 12 上運行

我收到以下錯誤

> Task :app:installDebug
Installing APK 'app-debug.apk' on '2201117PI - 12' for :app:debug

> Task :app:installDebug FAILED

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.


在此處輸入圖像描述

在此處輸入圖像描述

在終端中,輸入android文件夾

cd android

然后運行

.\gradlew clean

之后你的應用程序應該運行。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM