Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Could not determine wrapper version

Tags:

react-native

I've created a react native app, by simply doing:

react-native init app

I've followed this tutorial: Facebook Getting Started (I use Linux)

and I have done exactly what it says.

However, when I try to run the app (react-native run-android), I got the following message:

Starting JS server... Building and installing the app on the device (cd android && ./gradlew installDebug)... Exception in thread "main" java.lang.RuntimeException: Could not determine wrapper version. at org.gradle.wrapper.GradleWrapperMain.wrapperVersion(GradleWrapperMain.java:111) at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61) Caused by: java.lang.RuntimeException: No build receipt resource found. at org.gradle.wrapper.GradleWrapperMain.wrapperVersion(GradleWrapperMain.java:97) ... 1 more Could not install the app on the device, read the error above for details. Make sure you have an Android emulator running or a device connected and have set up your Android development environment: https://facebook.github.io/react-native/docs/android-setup.html ```

How can I solve this problem?

like image 643
sadtroll Avatar asked Nov 25 '25 14:11

sadtroll


1 Answers

According to this link https://github.com/MinecraftForge/ForgeGradle/issues/227 it's because you have some special character in your project path (like "!")

like image 98
eladc Avatar answered Nov 28 '25 17:11

eladc



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!