:app:recordFilesBeforeBundleCommandDebug FAILED - node.js

Hello I am trying to run an application react-native on a remote desktop
when I run ./gradlew clean it is build successfully.
However I have an error when running ./gradlew assembleDebug
Error: ENOENT: no such file or directory, open 'C:\Users\user\AppData\Local\Temp;C:\Users\user\AppData\Local\Android\Sdk\platform-tools\adb.exe\CodePushResourcesMap-aab77707.json'
:app:recordFilesBeforeBundleCommandDebug FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:recordFilesBeforeBundleCommandDebug'.
> Process 'command 'node'' 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.
BUILD FAILED
Total time: 10 mins 1.501 secs
Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have
set up your Android development environment:
https://facebook.github.io/react-native/docs/android-setup.html

Redirect to android folder and then use gradlew clean.
1.cd android
2.gradlew clean
I resolved this issues by using this comment

Related

IONIC 5 capacitor build android error : Execution failed for task ':capacitor-android:compileDebugJavaWithJavac'

I get the below error when I want to run my ionic app on android studio by using cmd -> ionic capacitor build android
Can teach me how to solve the below errors so that I can run my application on android studio?
Thank You.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':capacitor-android:compileDebugJavaWithJavac'.
> Failed to query the value of task ':capacitor-android:compileDebugJavaWithJavac' property 'options.generatedSourceOutputDirectory'.
> Querying the mapped value of map(java.io.File property(org.gradle.api.file.Directory, fixed(class org.gradle.api.internal.file.DefaultFilePropertyFactory$FixedDirectory, C:..\node_modules\#capacitor\android\capacitor\build\generated\ap_generated_sources\debug\out)) org.gradle.api.internal.file.DefaultFilePropertyFactory$ToFileTransformer#2cce4302) before task ':capacitor-android:compileDebugJavaWithJavac' has completed is not supported
* 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
Issue solved by updating the Gradle in Android Studio.
You must set version of Compile Sdk Version and Builds tools Version in File -> Project Structure -> app . set the values and it build self.

Error on build and run flutter project after reinstall windows

when i install new windows on my computer and install and configure android studio unfortunately my project that i have build on previous windows got error on below and i don't know what is about?
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:signingConfigWriterDebug'.
> java.nio.file.AccessDeniedException:
E:\Project\Mobile_App\store\build\app\intermediates\signing_config\debug\out\signing-config.json
* 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 6s
Finished with error: Gradle task assembleDebug failed with exit code 1

how to fix this error?? > Task :app:installDebug FAILED

I want to run React Native application. Did everything in order as described in the official documentation React Native
I was reading a possible problem when creating an AVD manager and in settings just need to choose "use host GPU". Since I have an android studio version of 3.4 GPU settings I did not find and found and chose Hardware-Gles 2.0 but the error still remained.
info JS server already running.
info Installing the app...
Task :app:installDebug FAILED
Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/5.4.1/userguide/command_line_interface.html#sec:command_line_warnings
27 actionable tasks: 2 executed, 25 up-to-date
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:installDebug'.
com.android.builder.testing.api.DeviceException: No connected devices!
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 7s
error Failed to install the app. Make sure you have an Android emulator running or a device connected. Run CLI with --verbose flag for more details.
Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:installDebug'.
com.android.builder.testing.api.DeviceException: No connected devices!
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 7s
at checkExecSyncError (child_process.js:616:11)
at execFileSync (child_process.js:634:15)
at runOnAllDevices (/Users/obaranni/Anastasiia/react/AwesomeProject/node_modules/#react-native-community/cli-platform-android/build/commands/runAndroid/runOnAllDevices.js:75:39)
at buildAndRun (/Users/obaranni/Anastasiia/react/AwesomeProject/node_modules/#react-native-community/cli-platform-android/build/commands/runAndroid/index.js:137:41)
at /Users/obaranni/Anastasiia/react/AwesomeProject/node_modules/#react-native-community/cli-platform-android/build/commands/runAndroid/index.js:103:12
at processTicksAndRejections (internal/process/task_queues.js:82:5)
at async Command.handleAction (/Users/obaranni/Anastasiia/react/AwesomeProject/node_modules/#react-native-community/cli/build/cliEntry.js:160:7)

Android Gradle dependency compile doesn't work with Java 9

Friends,
I was trying to run gradle command (mentioned below) to resolve dependencies
gradlew -q dependencies app:dependencies --configuration compile
I am using JDK9 and and using gradle 4.4 but when run above mentioned command getting an error.
FAILURE: Build failed with an exception.
What went wrong: A problem occurred configuring project ':app'.
Failed to notify project evaluation listener.
javax/xml/bind/annotation/XmlSchema
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 20s
Please help me on this.
It is an Android SDK problem with Java 9: Failed to run sdkmanager --list (Android SDK) with Java 9

react-native installation in ubuntu

smackuser#smackcoders:~/Documents/projects/Awesome$ react-native run-android
Starting JS server...
Building and installing the app on the device (cd android && ./gradlew installDebug...
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':app'.
> failed to find Build Tools revision 23.0.1
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 4.562 secs
Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have
set up your Android development environment:
https://facebook.github.io/react-native/docs/android-setup.html
Go to Android SDK Manager and under tools install Android SDK Build-tools 23.0.1.
You can access SDK Manager by either typing android in your terminal or going to your android-sdk/tools directory and from there typing ./android

Resources