Him*_*shu 7 reactjs react-native expo
我无法在模拟器和设备上运行我的应用程序。
我已经尝试了此博客中提到的每个步骤
我的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": "31.0.0",
"platforms": [
"ios",
"android"
],
"version": "1.0.0",
"orientation": "portrait",
"icon": "./assets/icon.png",
"splash": {
"image": "./assets/splash.png",
"resizeMode": "contain",
"backgroundColor": "#ffffff"
},
"updates": {
"fallbackToCacheTimeout": 0
},
"assetBundlePatterns": [
"**/*"
],
"ios": {
"supportsTablet": true
}
}
}
Run Code Online (Sandbox Code Playgroud)
我尝试运行npm install2-3次,但似乎没有任何效果。
我不明白为什么当此链接没有针对此选项的发行说明时,为什么建议使用选项32.0.0。 升级世博会
这是一个已知问题https://github.com/expo/expo/issues/3112
这是由于Play商店中的Expo应用程序存在错误。如果您正在使用v2.10.0,则应升级到v2.10.1
https://github.com/expo/expo/issues/3112#issuecomment-451697372
抱歉,给您带来麻烦。我们已经在几个小时后发布的v2.10.1中修复了此问题,因此您应该已经有更新。
https://play.google.com/store/apps/details?id=host.exp.exponent&hl=zh_CN
什么是新的
修复使用32岁以上的SDK加载体验时的问题
| 归档时间: |
|
| 查看次数: |
6983 次 |
| 最近记录: |