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

Hello I'm a new member and I've followed the steps as given in Build.md for setting up react native app for android on my windows 11 pc but it is showing this error and unable to build the app.

D:\ReactNative\joplin\packages\app-mobile\android>gradlew installDebug
Starting a Gradle Daemon, 4 incompatible and 1 stopped Daemons could not be reused, use --status for details

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 32s
5 actionable tasks: 1 executed, 4 up-to-date


Alternatively, I also tried running the command "gradlew.bat installDebug" as mentioned in BUILD.md but it is showing the error given below and app is not built again.

D:\ReactNative\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.

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

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

Did you run yarn install from the root of the project?

Yes. I ran 'yarn install' and it installed node modules in my project. But still it is not working.

I am getting a different error but then I'm on linux and my jdk version is probably different from yours.

If you want to debug the app, you could instead use yarn start, this seems to work for me.
You will then need to run the app from Android studio and it'll connect to the server running locally to get js code.

Also, try running with --info

1 Like

The build started to work after I switched to JDK 17, so maybe try that.

1 Like