FAILURE: Build completed with 2 failures.
1: Task failed with an exception.
Where:
Build file 'C:\Users\84346\Desktop\banh_mi\GoFood\node_modules\react-native-reanimated\android\build.gradle' line: 21
What went wrong:
A problem occurred evaluating project ':react-native-reanimated'.
Plugin with id 'maven' not found.
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.
==============================================================================
2: Task failed with an exception.
What went wrong:
A problem occurred configuring project ':react-native-reanimated'.
compileSdkVersion is not specified. Please add it to build.gradle
i use 7.2 & i fixed my problem by yarn add react-native-reanimated#1.13.4
Fix
Related
Task :app:createBundleReleaseJsAndAssets FAILED
Task :app:createBundleReleaseJsAndAssets FAILED
FAILURE: Build completed with 2 failures.
1: Task failed with an exception.
What went wrong:
Execution failed for task ':app:createBundleReleaseJsAndAssets'.
Process 'command 'cmd'' finished with non-zero exit value 1
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.
==============================================================================
2: Task failed with an exception.
What went wrong:
java.lang.StackOverflowError (no error message)
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.
==============================================================================
Get more help at https://help.gradle.org
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
Execution optimizations have been disabled for 14 invalid unit(s) of work during this build to ensure correctness.
Please consult deprecation warnings for more details.
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.
Get more help at https://help.gradle.org
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.
Get more help at https://help.gradle.org
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 the React-Native application, just open android/app/build.gradle Line: 240, remove this line
def abi = output.getFilter(OutputFile.ABI)
And paste the below code.
def abi = output.getFilter(com.android.build.OutputFile.ABI)
I am new to React Native. Getting below error. Any suggestion how to trace this type of errors in react.
Spent a whole day to find out cause of the error.
What went wrong:
Could not open settings generic class cache for settings file 'D:\ReactNative\SSC2\android\settings.gradle' (C:\Users\Dell.gradle\caches\7.5.1\scripts\8mud6kpc6deuu7vvpctiud3o6).
BUG! exception in phase 'semantic analysis' in source unit 'BuildScript' Unsupported class file major version 63
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.
Get more help at https://help.gradle.org
BUILD FAILED in 1s
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.
What went wrong:
Could not open settings generic class cache for settings file 'D:\ReactNative\SSC2\android\settings.gradle' (C:\Users\Dell.gradle\caches\7.5.1\scripts\8mud6kpc6deuu7vvpctiud3o6).
BUG! exception in phase 'semantic analysis' in source unit 'BuildScript' Unsupported class file major version 63
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.
Get more help at https://help.gradle.org
BUILD FAILED in 1s
at makeError (D:\ReactNative\SSC2\node_modules\#react-native-community\cli-platform-android\node_modules\execa\index.js:174:9)
at D:\ReactNative\SSC2\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:\ReactNative\SSC2\node_modules\#react-native-community\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:82:7)
at async Command.handleAction (D:\ReactNative\SSC2\node_modules\#react-native-community\cli\build\index.js:108:9)
info Run CLI with --verbose flag for more details.
Any suggestion how to troubleshoot and trace this type of errors in react.
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:installDebug'.
com.android.builder.testing.api.DeviceException: com.android.ddmlib.InstallException: Unknown failure: cmd: Can't find service: package
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.
Get more help at gradle
BUILD FAILED in 17s
Close all the running emulators if any
Go to Android Studio and open AVD Manager
From that click your device and make Cool Boot Now and re-run your application
Once you click Cool Boot Now emulator will open again like this
ionic build android failed on mac :(
FAILURE: Build failed with an exception.
What went wrong:
A problem occurred configuring root project 'android'.
Could not resolve all dependencies for configuration ':_debugCompile'.
Could not find any version that matches com.android.support:support-v4:+.
Could not find any version that matches com.android.support:support-v13:23+.
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 5.006 secs
/Users/Rain/Desktop/hc/platforms/android/cordova/node_modules/q/q.js:126
throw e;
^
Error code 1 for command: /Users/Rain/Desktop/hc/platforms/android/gradlew with args: cdvBuildDebug,-b,/Users/Rain/Desktop/hc/platforms/android/build.gradle,-Dorg.gradle.daemon=true
ERROR building one of the platforms: Error: /Users/Rain/Desktop/hc/platforms/android/cordova/build: Command failed with exit code 1
You may not have the required environment or OS to build this project
Error: /Users/Rain/Desktop/hc/platforms/android/cordova/build: Command failed with exit code 1