Hello Team,
MOSIP Branch - release-0.13.x
Following are the errors
ttpl-rt-063@ttpl-rt-063:~/mosip/inji-wallet$ npm run android:mosip
mosip-resident-app@1.0.0 android:mosip
react-native run-android --variant=residentappDebug
info Starting JS server…
- daemon not running; starting now at tcp:5037
- daemon started successfully
info Launching emulator…
info Successfully launched emulator.
warn “variant” flag is deprecated and will be removed in future release. Please switch to “mode” flag.
info Installing the app…
Starting a Gradle Daemon (subsequent builds will be faster)
Task :react-native-gradle-plugin:compileKotlin
Task :react-native-gradle-plugin:compileKotlin FAILED
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 Command-Line Interface
1 actionable task: 1 executed
e: /home/ttpl-rt-063/mosip/inji-wallet/node_modules/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/tasks/BundleHermesCTask.kt: (138, 11): This declaration is experimental and its usage must be marked with ‘@kotlin.ExperimentalStdlibApi’ or ‘@OptIn(kotlin.ExperimentalStdlibApi::class)’
FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ‘:react-native-gradle-plugin:compileKotlin’.
Compilation error. See log for more details
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 3m 9s
error Failed to install the app. Make sure you have the Android development environment set up: Get Started with React Native · React Native.
Error: Command failed: ./gradlew app:installResidentappDebug -PreactNativeDevServerPort=8081
e: /home/ttpl-rt-063/mosip/inji-wallet/node_modules/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/tasks/BundleHermesCTask.kt: (138, 11): This declaration is experimental and its usage must be marked with ‘@kotlin.ExperimentalStdlibApi’ or ‘@OptIn(kotlin.ExperimentalStdlibApi::class)’
FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ‘:react-native-gradle-plugin:compileKotlin’.
Compilation error. See log for more details
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 3m 9s
at makeError (/home/ttpl-rt-063/mosip/inji-wallet/node_modules/@react-native-community/cli-platform-android/node_modules/execa/index.js:174:9)
at /home/ttpl-rt-063/mosip/inji-wallet/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 (/home/ttpl-rt-063/mosip/inji-wallet/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/runOnAllDevices.js:82:7)
at async Command.handleAction (/home/ttpl-rt-063/mosip/inji-wallet/node_modules/@react-native-community/cli/build/index.js:108:9)
info Run CLI with --verbose flag for more details.