简体   繁体   中英

React Native Error Occur, Someone Know About This Error

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.5.1/userguide/command_line_interface.html#sec:command_line_warnings 5 actionable tasks: 5 up-to-date

FAILURE: Build failed with an exception.

  • Where: Build file 'D:\React Native Applications\FirstProject\android\app\build.gradle' line: 240

  • What went wrong: A problem occurred configuring project ':app'.

groovy.lang.MissingPropertyException: No such property: ABI for class: org.gradle.api.tasks.OutputFile

  • Try:

Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

BUILD FAILED in 17s

error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup . Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081

FAILURE: Build failed with an exception.

  • Where: Build file 'D:\React Native Applications\FirstProject\android\app\build.gradle' line: 240

  • What went wrong: A problem occurred configuring project ':app'.

groovy.lang.MissingPropertyException: No such property: ABI for class: org.gradle.api.tasks.OutputFile

  • Try:

Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

BUILD FAILED in 17s

at makeError (D:\React Native Applications\FirstProject\node_modules\@react-native-community\cli-platform-android\node_modules\execa\index.js:174:9)        
at D:\React Native Applications\FirstProject\node_modules\@react-native-community\cli-platform-android\node_modules\execa\index.js:278:16
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async runOnAllDevices (D:\React Native Applications\FirstProject\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:109:5)
at async Command.handleAction (D:\React Native Applications\FirstProject\node_modules\@react-native-community\cli\build\index.js:142:9)

info Run CLI with --verbose flag for more details.

Please Give Solution About This Error

So, If Your Project Arises This Type Of Error In React-Native Application, Just Open android/app/build.gradle Line: 240, Remove This Line def abi = output.getFilter(OutputFile.ABI)

And Past The Below Code. def abi = output.getFilter(com.android.build.OutputFile.ABI)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM