These are the errors when running "npx react-native run-android"
rror 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 app:installDebug -PreactNativeDevServerPort=8081
FAILURE: Build completed with 2 failures.
1: Task failed with an exception.
Where:
Script '/home/modou/Desktop/northcoders/projects/test-RN/Bot-Spotter/node_modules/expo-modules-autolinking/scripts/android/autolinking_implementation.gradle' line: 272
What went wrong:
A problem occurred evaluating project ':expo'.
A problem occurred configuring project ':expo-modules-core'.
Failed to notify project evaluation listener.
> NDK at /home/modou/Android/Sdk/ndk/21.1.6352462 did not have a source.properties file
> Could not get unknown property 'release' for SoftwareComponentInternal set of type org.gradle.api.internal.component.DefaultSoftwareComponentContainer.
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 ':expo'.
compileSdkVersion is not specified. Please add it to build.gradle
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.
==============================================================================
Related
FAILURE: Build failed with an exception.
Where:
Build file 'C:\Users\Asus\Desktop\Yeni klas�r\b\android\app\build.gradle' line: 24
What went wrong:
A problem occurred evaluating project ':app'.
Failed to apply plugin 'com.android.internal.application'.
Your project path contains non-ASCII characters. This will most likely cause the build to fail on Windows. Please move your project to a different directory. See http://b.android.com/95744 for details. This warning can be disabled by adding the line 'android.overridePathCheck=true' to gradle.properties file in the project directory.
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 4s
Exception: Gradle task assembleDebug failed with exit code 1
Exited (sigterm)
I try to:
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.
`
FAILURE: Build failed with an exception.
Where:
Build file '/Users/theroushan/Documents/NextSchool/android/app/build.gradle' line: 32
What went wrong:
A problem occurred evaluating project ':app'.
No signature of method: build_4a37y44n4qcdao4l4d5njw5b5.android() is applicable for argument types: (build_4a37y44n4qcdao4l4d5njw5b5$_run_closure2) values: [build_4a37y44n4qcdao4l4d5njw5b5$_run_closure2#73288fd8]
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
Exception: Gradle task assembleDebug failed with exit code 1`
I tried to run the app, but I am getting this error in flutter?
FAILURE: Build failed with an exception.
Where:
Build file 'C:\src\Flutter projeleri\dar_t1\flutter_application_1\android\app\build.gradle' line: 27
What went wrong:
A problem occurred evaluating project ':app'.
Could not get unknown property 'stacktrace' for project ':app' of type org.gradle.api.Project.
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
when i run:
ionic cordova build --prod android
the console shows me the following error:
Subproject Path: CordovaLib
Subproject Path: app
Configure project :app
Project evaluation failed including an error in afterEvaluate {}. Run with --stacktrace for details of the afterEvaluate {} error.
FAILURE: Build failed with an exception.
Where:
Script 'C:\Ionic\app\platforms\android\CordovaLib\cordova.gradle' line: 132
What went wrong:
A problem occurred evaluating project ':app'.
No match 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.
Get more help at https://help.gradle.org
BUILD FAILED in 1s
C:\Ionic\app\platforms\android\gradlew: Command failed with exit code 1 Error output:
Project evaluation failed including an error in afterEvaluate {}. Run with --stacktrace for details of the afterEvaluate {} error.
FAILURE: Build failed with an exception.
Where:
Script 'C:\Ionic\app\platforms\android\CordovaLib\cordova.gradle' line: 132
What went wrong:
A problem occurred evaluating project ':app'.
No match 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.
Get more help at https://help.gradle.org
BUILD FAILED in 1s
[ERROR] An error occurred while running subprocess cordova.
cordova.cmd build android exited with exit code 1.
Re-running this command with the --verbose flag may provide more information.
Does anyone know what I may be doing wrong?
I had been able to build and run the react-native project in my old intel based mac successfully. Recently I migrated my project to the apple silicon and now I'm having issues building and running react-native project on m1 mac. When I run the npx react-native run-android I get below error message in the console:
FAILURE: Build completed with 2 failures.
1: Task failed with an exception.
-----------
* Where:
Build file '/Users/sussol/Documents/Git/mobile/android/app/build.gradle' line: 120
* What went wrong:
A problem occurred evaluating project ':app'.
> ../package.json (No such file or directory)
* 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 ':app'.
> compileSdkVersion is not specified. Please add it to build.gradle
* 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 2m 4s
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 app:installDebug -PreactNativeDevServerPort=8081
FAILURE: Build completed with 2 failures.
1: Task failed with an exception.
-----------
* Where:
Build file '/Users/sussol/Documents/Git/mobile/android/app/build.gradle' line: 120
* What went wrong:
A problem occurred evaluating project ':app'.
> ../package.json (No such file or directory)
* 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 ':app'.
> compileSdkVersion is not specified. Please add it to build.gradle
* 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
I tried various things to get it working like cleaning gradle, using different build tools versions etc. But none of them worked. Does anybody has any idea what's going on here? Any help would really be appreciated. Thanks.