gpt4 book ai didi

react-native - 无法确定包装器版本

转载 作者:行者123 更新时间:2023-12-01 19:11:31 24 4
gpt4 key购买 nike

我创建了一个 react native 应用程序,只需执行以下操作:

react-native init app

我已按照本教程进行操作:Facebook Getting Started (I use Linux)

我已经按照它所说的做了。

但是,当我尝试运行应用程序 (react-native run-android) 时,我收到以下消息:

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 ```

如何解决这个问题?

最佳答案

根据此链接 https://github.com/MinecraftForge/ForgeGradle/issues/227这是因为您的项目路径中有一些特殊字符(例如“!”)

关于react-native - 无法确定包装器版本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41560235/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com