React Native android emulator doesn't working - android

`> helloworld#1.0.0 android
expo run:android
› Opening emulator Pixel_4_XL
› Building app...
Picked up _JAVA_OPTIONS: -Xmx512M
Configuration on demand is an incubating feature.
FAILURE: Build failed with an exception.
Where:
Settings file 'C:\Users\oktay\OneDrive\Masa³st³\React-Native\HelloWorld\android\settings.gradle' line: 3
What went wrong:
A problem occurred evaluating settings 'HelloWorld'.
Could not read script 'C:\Users\oktay\OneDrive\Masa├â•st├â•\React-Native\HelloWorld\node_modules\expo\scripts\autolinking.gradle' as it does not exist.
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
BU¦LD FAILED in 2s
Error: C:\Users\oktay\OneDrive\Masaüstü\React-Native\HelloWorld\android\gradlew.bat exited with non-zero code: 1
Error: C:\Users\oktay\OneDrive\Masaüstü\React-Native\HelloWorld\android\gradlew.bat exited with non-zero code: 1
at ChildProcess.completionListener (C:\Users\oktay\OneDrive\Masaüstü\React-Native\HelloWorld\node_modules\#expo\spawn-async\build\spawnAsync.js:52:23)
at Object.onceWrapper (node:events:628:26)
at ChildProcess.emit (node:events:513:28)
at ChildProcess.cp.emit (C:\Users\oktay\OneDrive\Masaüstü\React-Native\HelloWorld\node_modules\cross-spawn\lib\enoent.js:34:29)
at maybeClose (node:internal/child_process:1100:16)
at Process.ChildProcess._handle.onexit (node:internal/child_process:304:5)
...
at Object.spawnAsync [as default] (C:\Users\oktay\OneDrive\Masaüstü\React-Native\HelloWorld\node_modules\#expo\spawn-async\build\spawnAsync.js:17:21)
at spawnGradleAsync (C:\Users\oktay\OneDrive\Masaüstü\React-Native\HelloWorld\node_modules\#expo\cli\build\src\start\platforms\android\gradle.js:72:46)
at Object.assembleAsync (C:\Users\oktay\OneDrive\Masaüstü\React-Native\HelloWorld\node_modules\#expo\cli\build\src\start\platforms\android\gradle.js:52:18)
at runAndroidAsync (C:\Users\oktay\OneDrive\Masaüstü\React-Native\HelloWorld\node_modules\#expo\cli\build\src\run\android\runAndroidAsync.js:31:24)
at processTicksAndRejections (node:internal/process/task_queues:96:5)`
I'm running it, but the android emulator is causing problems. I am using mobile phone this post sorry for mistakes.

Related

my app was running fine but suddenly this error shown in debug console when i run flutter android app

this is the error
FAILURE: Build failed with an exception.
Where:
Script '/home/anees/snap/flutter/common/flutter/packages/flutter_tools/gradle/flutter.gradle' line: 1159
What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
Process 'command '/home/anees/snap/flutter/common/flutter/bin/flutter'' 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.
Get more help at https://help.gradle.org
BUILD FAILED in 1m 35s
Exception: Gradle task assembleDebug failed with exit code 1
Exited (sigterm)
i tried running flutter clean
i tried adding all dependencies again.
restarted visual studio code
but all in vain
it was just fine but now it is causing errors

npx expo run:android not wokring on m1 mac

So I have ejected an expo app to a normal react native app. The IOS version of the app is working fine. But I can't seem to start the android version.
I am getting this error log:
› Skipping dev server
› Building app...
Configuration on demand is an incubating feature.
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':react-native-gradle-plugin'.
> Could not create service of type OutputFilesRepository using ExecutionGradleServices.createOutputFilesRepository().
> Failed to create parent directory '/Users/moemenhussein/Documents/Projects/ahmo/restart-lifestyle/restart-lifestyle/node_modules/react-native-gradle-plugin/.gradle' when creating directory '/Users/moemenhussein/Documents/Projects/ahmo/restart-lifestyle/restart-lifestyle/node_modules/react-native-gradle-plugin/.gradle/buildOutputCleanup'
* 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 2s
Error: /Users/moemenhussein/Documents/Projects/ahmo/restart-lifestyle/restart-lifestyle/android/gradlew exited with non-zero code: 1
Error: /Users/moemenhussein/Documents/Projects/ahmo/restart-lifestyle/restart-lifestyle/android/gradlew exited with non-zero code: 1
at ChildProcess.completionListener (/Users/moemenhussein/Documents/Projects/ahmo/restart-lifestyle/restart-lifestyle/node_modules/#expo/spawn-async/build/spawnAsync.js:52:23)
at Object.onceWrapper (node:events:642:26)
at ChildProcess.emit (node:events:527:28)
at maybeClose (node:internal/child_process:1092:16)
at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)
...
at Object.spawnAsync [as default] (/Users/moemenhussein/Documents/Projects/ahmo/restart-lifestyle/restart-lifestyle/node_modules/#expo/spawn-async/build/spawnAsync.js:17:21)
at spawnGradleAsync (/Users/moemenhussein/Documents/Projects/ahmo/restart-lifestyle/restart-lifestyle/node_modules/#expo/cli/build/src/start/platforms/android/gradle.js:72:46)
at Object.assembleAsync (/Users/moemenhussein/Documents/Projects/ahmo/restart-lifestyle/restart-lifestyle/node_modules/#expo/cli/build/src/start/platforms/android/gradle.js:52:18)
at runAndroidAsync (/Users/moemenhussein/Documents/Projects/ahmo/restart-lifestyle/restart-lifestyle/node_modules/#expo/cli/build/src/run/android/runAndroidAsync.js:31:24)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
I have already removed my package-lock.json, node_module etc. I really do not know what to do.

Can not build the android application after upgrading to flutter 3.0

Command: flutter run --flavor dev --no-sound-null-safety
FAILURE: Build failed with an exception.
Where:
Script '/Users/petodavid/Developer/flutter/packages/flutter_tools/gradle/flutter.gradle' line: 1156
What went wrong:
Execution failed for task ':app:compileFlutterBuildDevDebug'.
Process 'command '/Users/petodavid/Developer/flutter/bin/flutter'' 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.
Get more help at https://help.gradle.org
BUILD FAILED in 12s
Exception: Gradle task assembleDevDebug failed with exit code 1
I also created a github issue: https://github.com/flutter/flutter/issues/103578

I can't run my flutter existing projects, what is happening?

I keep getting this error and I don't seem to find any help online. I am new to flutter, vscode and this whole programming world. Any help is very well appreciated. The thing is I can't run my previous projects but I actually can if I create new ones.
This is what it is printed in the debug console when I try to run my previous projects:
FAILURE: Build failed with an exception.
Where:
Script 'C:\src\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 896
What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
Process 'command 'C:\src\flutter\bin\flutter.bat'' 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.
Get more help at https://help.gradle.org
BUILD FAILED in 19s
Exception: Gradle task assembleDebug failed with exit code 1
Exited (sigterm)

When I try to execute project with React native I get the following problem

I have all the environment variables configured correctly, and I have this error
Task :app:processDebugResources 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.1.1/userguide/command_line_interface.html#sec:command_line_warnings
82 actionable tasks: 3 executed, 79 up-to-date
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:processDebugResources'.
Could not read path 'C:\Users\Antonio\Desktop\Proyectos\Personales\meissaa-app-mad\android\app\build\generated\not_namespaced_r_class_sources\debug\processDebugResources\r\androidx\appcompat'.
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 58s
error Failed to install the app. Make sure you have the Android development environment set up: https://facebook.github.io/react-native/docs/getting-started.html#android-development-environment. Run CLI with --verbose flag for more details.Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:processDebugResources'.
Could not read path 'C:\Users\Antonio\Desktop\Proyectos\Personales\meissaa-app-mad\android\app\build\generated\not_namespaced_r_class_sources\debug\processDebugResources\r\androidx\appcompat'.
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 58s
at checkExecSyncError (child_process.js:629:11)
at execFileSync (child_process.js:647:13)
at runOnAllDevices (C:\Users\Antonio\Desktop\Proyectos\Personales\meissaa-app-mad\node_modules\#react-native-community\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:74:39)
at buildAndRun (C:\Users\Antonio\Desktop\Proyectos\Personales\meissaa-app-mad\node_modules\#react-native-community\cli-platform-android\build\commands\runAndroid\index.js:158:41)
at then.result (C:\Users\Antonio\Desktop\Proyectos\Personales\meissaa-app-mad\node_modules\#react-native-community\cli-platform-android\build\commands\runAndroid\index.js:125:12)
at process._tickCallback (internal/process/next_tick.js:68:7)

Categories

Resources