Could not determine wrapper version

被刻印的时光 ゝ 提交于 2019-12-24 07:58:36

问题


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?


回答1:


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



来源:https://stackoverflow.com/questions/41560235/could-not-determine-wrapper-version

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!