npm already installed successfully, getting another issue.
try that step also 1. npm cache clean -f
2. rm -rf node_modules
3. npm install
mosip-resident-app@1.0.0 android:mosip
react-native run-android --variant=residentappDebug
info Starting JS server…
warn “variant” flag is deprecated and will be removed in future release. Please switch to “mode” flag.
info Installing the app…
Configure project :expo-barcode-scanner
WARNING:Software Components will not be created automatically for Maven publishing from Android Gradle Plugin 8.0. To opt-in to the future behavior, set the Gradle property android.disableAutomaticComponentCreation=true in the gradle.properties
file or use the new publishing DSL.
Configure project :expo-font
WARNING:Software Components will not be created automatically for Maven publishing from Android Gradle Plugin 8.0. To opt-in to the future behavior, set the Gradle property android.disableAutomaticComponentCreation=true in the gradle.properties
file or use the new publishing DSL.
Configure project :expo-image-loader
WARNING:Software Components will not be created automatically for Maven publishing from Android Gradle Plugin 8.0. To opt-in to the future behavior, set the Gradle property android.disableAutomaticComponentCreation=true in the gradle.properties
file or use the new publishing DSL.
Configure project :expo-local-authentication
WARNING:Software Components will not be created automatically for Maven publishing from Android Gradle Plugin 8.0. To opt-in to the future behavior, set the Gradle property android.disableAutomaticComponentCreation=true in the gradle.properties
file or use the new publishing DSL.
Configure project :expo-localization
WARNING:Software Components will not be created automatically for Maven publishing from Android Gradle Plugin 8.0. To opt-in to the future behavior, set the Gradle property android.disableAutomaticComponentCreation=true in the gradle.properties
file or use the new publishing DSL.
5 actionable tasks: 2 executed, 3 up-to-date
FAILURE: Build completed with 2 failures.
1: Task failed with an exception.
-
Where:
Script ‘E:\All Workspaces\Android Workspace\MOSIP\inji\node_modules\expo-modules-autolinking\scripts\android\autolinking_implementation.gradle’ line: 273
-
What went wrong:
A problem occurred evaluating project ‘:expo’.
A problem occurred configuring project ‘:expo-modules-core’.
Failed to notify project evaluation listener.
The filename, directory name, or volume label syntax is incorrect
Could not get unknown property ‘release’ for SoftwareComponentInternal set of type org.gradle.api.internal.component.DefaultSoftwareComponentContainer.
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
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 2m
error Failed to install the app. Make sure you have the Android development environment set up: Setting up the development environment · React Native.
Error: Command failed: gradlew.bat app:installResidentappDebug -PreactNativeDevServerPort=8081
FAILURE: Build completed with 2 failures.
1: Task failed with an exception.
-
Where:
Script ‘E:\All Workspaces\Android Workspace\MOSIP\inji\node_modules\expo-modules-autolinking\scripts\android\autolinking_implementation.gradle’ line: 273
-
What went wrong:
A problem occurred evaluating project ‘:expo’.
A problem occurred configuring project ‘:expo-modules-core’.
Failed to notify project evaluation listener.
The filename, directory name, or volume label syntax is incorrect
Could not get unknown property ‘release’ for SoftwareComponentInternal set of type org.gradle.api.internal.component.DefaultSoftwareComponentContainer.
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
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 2m
at makeError (E:\All Workspaces\Android Workspace\MOSIP\inji\node_modules\@react-native-community\cli-platform-android\node_modules\execa\index.js:174:9)
at E:\All Workspaces\Android Workspace\MOSIP\inji\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 (E:\All Workspaces\Android Workspace\MOSIP\inji\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:82:7)
at async Command.handleAction (E:\All Workspaces\Android Workspace\MOSIP\inji\node_modules\@react-native-community\cli\build\index.js:108:9)
info Run CLI with --verbose flag for more details.