gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-03 13:21:37 24 4
gpt4 key购买 nike

我无法在模拟器和设备上运行我的应用程序。之前它可以正常工作。

我已尝试过此博客中提到的每一步

Official Blog for updation

我的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
}

并且 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
}
}
}

我尝试运行 npm install 2-3 次,但似乎没有任何效果。

我不明白为什么它建议使用选项 32.0.0,而此链接上没有此选项的发行说明 Upgrading Expo

最佳答案

这是一个已知问题 https://github.com/expo/expo/issues/3112

这是由于 Play 商店中的 Expo 应用程序存在错误。如果您使用的是 v2.10.0,那么您应该升级到 v2.10.1

https://github.com/expo/expo/issues/3112#issuecomment-451697372

Sorry guys for the trouble 😞 We've fixed this issue in v2.10.1 that was released just a few hours later so you should already have an update.

https://play.google.com/store/apps/details?id=host.exp.exponent&hl=en

WHAT'S NEW

Fix issues when loading experiences with SDK older than 32

关于reactjs - 31.0.0 不是有效的 SDK 版本。选项为 32.0.0 UNVERSIONED,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54059003/

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