我正在尝试创建一个react native项目,我有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
之后,您的应用程序应该会运行。