小编Him*_*shu的帖子

31.0.0不是有效的SDK版本。选项为32.0.0 UNVERSIONED

我无法在模拟器和设备上运行我的应用程序。

我已经尝试了此博客中提到的每个步骤

官方博客进行更新

我的package.json

{
"main": "node_modules/expo/AppEntry.js",
  "scripts": {
"android-windows": "react-native bundle --platform android --dev false --entry-file App.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res && react-native run-android",
"start": "expo start",
"android": "expo start --android",
"ios": "expo start --ios",
"eject": "expo eject",
"debugWindow": "start 'rndebugger://set-debugger-loc?host=localhost&port=8081'",
"debugLinux": "open 'rndebugger://set-debugger-loc?host=localhost&port=8081'"
 },

"dependencies": {
    "expo": "^31.0.4",
    "react": "16.5.0",
    "react-native": "https://github.com/expo/react-native/archive/sdk-31.0.1.tar.gz",
    "react-navigation": "^3.0.8"
  },
  "devDependencies": {
    "babel-preset-expo": "^5.0.0"
  },
  "private": true
}
Run Code Online (Sandbox Code Playgroud)

并且App.json

{


 "expo": {
    "name": "AwesomeProject",
    "slug": "AwesomeProject",
    "privacy": "public",
    "sdkVersion": …
Run Code Online (Sandbox Code Playgroud)

reactjs react-native expo

7
推荐指数
1
解决办法
6983
查看次数

标签 统计

expo ×1

react-native ×1

reactjs ×1