Not able to create android build on windows for react native

I've followed all steps in BUILD.md but I'm getting error when I try to create a build for android app.

My installed dependencies:

  1. Node js : 20.15.1
  2. Java version : 17.0.12
  3. SDK : Android 14 (UpsideDownCake) API level 34

D:\OpenSource\joplin\packages\app-mobile\android>./gradlew installDebug
'.' is not recognized as an internal or external command,
operable program or batch file.

D:\OpenSource\joplin\packages\app-mobile\android>gradlew.bat installDebug

Configure project :app
WARNING: The option setting 'android.jetifier.ignorelist=bcprov' is experimental.

FAILURE: Build failed with an exception.

  • What went wrong:
    Could not determine the dependencies of task ':react-native-image-picker:compileDebugJavaWithJavac'.

Could not determine the dependencies of null.
Cannot query the value of this provider because it has no value available.

  • 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.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

e Gradle documentation.

BUILD FAILED in 53s
5 actionable tasks: 5 executed

D:\OpenSource\joplin\packages\app-mobile\android>.\gradlew installDebug

Configure project :app
WARNING: The option setting 'android.jetifier.ignorelist=bcprov' is experimental.

FAILURE: Build failed with an exception.

  • What went wrong:
    Could not determine the dependencies of task ':react-native-image-picker:compileDebugJavaWithJavac'.

Could not determine the dependencies of null.
Cannot query the value of this provider because it has no value available.

  • 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.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

For more on this, please refer to Command-Line Interface Reference in the Gradle documentation.

BUILD FAILED in 8s
5 actionable tasks: 1 executed, 4 up-to-date

Can someone please help me with this issue? What steps do I need to follow?

Maybe this will help Unable to run React Native (Android) app on Windows 11 even after following steps from BUILD.md

1 Like

Instead of Windows now I did the setup of React Native on Ubuntu (via virtual machine) and successfully created Android build on my physical device using the ./gradlew installDebug command.

How to run this now? I tried yarn start and yarn android but they are not working.