我很好奇为什么我需要打开Xcode并点击“构建并运行”(根据)才能在我的iPhone上运行我的应用程序。
$ react-native help
Usage: react-native <command>
Commands:
- start: starts the webserver
- bundle: builds the javascript bundle for offline use
- unbundle: builds javascript as "unbundle" for offline use
- new-library: gene
在iOS链接阶段,我开始看到的错误。
React原生版本:0.41.2、0.40、0.39
所有操作都很好,我编辑了Android版本,响应本地代码没有改变,当这种链接错误开始显示时,没有找到/node_modules/react-native/React/Base/{RCTHeaderName.h}路径上的标题:
In file included from /Users/user/ReactNativeProject/node_modules/react-native-vector-icons/RNVectorIconsManager/RNVectorIconsManager.h:
我在React Native Expo应用程序上收到以下错误: Setting a timer for a long period of time, i.e. multiple minutes, is a performance and correctness issue on Android as it keeps the timer module awake, and timers can only be called when the app is in the foreground. See https://github.com/facebook/react-native/issue
我最近开始开发一个仅在ios上实现的现有React Native应用程序,并开始尝试在Android上构建和开发它。我遵循了React Native文档上的所有说明,但一直收到这个错误,并且找不出原因:
A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:_debugApk'.
> Configuration with name 'default' not found
我在OSX上使用的是react-native 0.43.3。我试着在Android上运行应用程序,然后收到消息
react-native run-android
Scanning 568 folders for symlinks in /Users/ruci.k/project/mayacrew/supermembers/supermembers/node_modules (5ms)
JS server already running.
Building and installing the app on the device (cd android && ./gradlew
我正在使用本教程创建我的第一个原生react项目:
当涉及到执行代码和运行react-native run-android时,我得到的是:
adb server is out of date. killing...
* daemon started successfully *
安卓设备上的应用程序显然无法正常工作。
我已经重新安装了SDK,尝试了adb kill-server和adb start-server,但似乎都不起作用
我使用的是Android 4.4和Ubuntu 14.04