【发布时间】:2018-07-10 19:51:59
【问题描述】:
我被困在 react 原生应用程序构建的初始部分。我正在使用 create-react-native-app pkg 创建项目,当我通过“yarn run android”命令运行 android 版本应用程序时,出现以下错误:
Error: Invalid sdkVersion. Valid options are 10.0.0, 11.0.0, 12.0.0, 13.0.0, 14.0.0, 15.0.0, 16.0.0, 17.0.0, 18.0.0, 19.0.0, 20.0.0, 21.0.0, 22.0.0, 23.0.0, 24.0.0, 25.0.0, 7.0.0, 8.0.0, 9.0.0
这是一台 Windows 机器。节点 v10.0.0、npm v5.6.0、Java 1.8 和 android studio 已经安装和工作我通过 android studio 添加了各种 API。目前我在 Sdk 平台上安装了 17-23-24-26。 我在真正的 android 设备上收到以下错误:
uncaught Error: console.error: React Native version mismatch.
Javascript version: 0.53.0
Native version: 0.52.0
Make sure that you have rebuilt the native code. If the problem persists try clearing the Watchman and packager caches with 'watchman watch-del-all && react-native start --reset-cache.
我没有找到解决方案...
【问题讨论】:
标签: javascript android android-studio react-native