android - 如何解决 React Native Expo 项目中的 Uncaught Error :29. 0.0

标签 android react-native sdk expo

我正在尝试使用 Expo 方法构建(不是由我)构建的 react-native 应用程序 的演示。安装依赖项并尝试运行应用程序后;我收到以下错误:

Uncaught Error: 29.0.0 is not a valid SDK version. Options are 35.0.0 , 33.0.0, UNVERSIONED. 16:56:55 Fatal Error.

这是 package.json 文件:

{
  "name": "food-shop",
  "main": "node_modules/expo/AppEntry.js",
  "private": true,
  "scripts": {
    "start": "expo start",
    "android": "expo start --android",
    "ios": "expo start --ios",
    "eject": "expo eject"
  },
  "dependencies": {
    "expo": "^29.0.0",
    "expokit": "^1.5.0",
    "react": "16.3.1",
    "react-native": "https://github.com/expo/react-native/archive/sdk-29.0.0.tar.gz",
    "react-navigation": "^2.11.2"
  }
}

我使用的是华为 Y5 Lite,Android 8.1.0。我想知道的是,我该如何解决这个错误?

谢谢。

最佳答案

Expo app当前版本仅支持SDK 33+

https://blog.expo.io/expo-sdk-35-is-now-available-beee0dfafbf4

We routinely drop SDK versions that have low usage, but we’ve dropped more versions than usual with this release. SDK 33 was the first version that included 64-bit support, and in order for us to update the Expo client on Google Play, every SDK version we include must have 64-bit support. This release sees the end of life for SDKs 31 and 32. As usual, your standalone apps built with these SDK versions will continue to work; however, SDK 31 and 32 projects will no longer work within the latest version of Expo Client. At this time, you can still run expo build for SDK 31 and 32 projects. Note, however, that you must upgrade to 33 or later in order to submit an updated APK to Google Play due to the 64-bit requirement. We will remove support for SDKs 31 and 32 in expo build in a future release. If you still need to test a project running SDK 31 or 32, you can download this Android client version and this iOS client version.

除非您将 SDK 更新为更新的版本,否则您将无法运行该应用。

关于android - 如何解决 React Native Expo 项目中的 Uncaught Error :29. 0.0,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58050486/

相关文章:

安卓市场过滤器;屏幕尺寸限制为一种类型

android - 奥利奥通知图标不显示

java - Android USB 主机示例在 Android Studio 中不起作用

javascript - 从 AsyncStorage 检索 JWT 以使用 ApolloClient 创建 httpLink 中间件时出现问题

iphone - 翻页示例代码

android - 我可以使用哪些工具来加载 Android Sdk 在 Eclipse 中工作得很快?

android - 手机待机时如何继续运行我的Android应用程序?

javascript - 分配给属性的 function() 未在 React Native 中执行

react-native - React Native ScrollView 不滚动到底部并反弹回来

java - 找不到 JDK