【问题标题】:Error while building android app built with react-native构建使用 react-native 构建的 android 应用程序时出错
【发布时间】:2018-07-30 19:20:01
【问题描述】:

这是我几天前面临的数百万个错误中的一个错误 = 解决任何导致新错误的错误!!!

下图中的错误

这是我的 package.json

{
  "name": "taplot",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "start": "node node_modules/react-native/local-cli/cli.js start",
    "test": "jest"
  },
  "dependencies": {
    "axios": "^0.18.0",
    "expo": "^29.0.0",
    "native-base": "^2.7.2",
    "react": "16.4.1",
    "react-native": "^0.55.0",
    "react-native-easy-grid": "^0.2.0",
    "react-native-flags": "^1.0.0",
    "react-native-icon-badge": "^1.1.3",
    "react-native-public-ip": "^1.0.0",
    "react-native-toaster": "^1.2.2",
    "react-navigation": "^2.9.3"
  },
  "devDependencies": {
    "babel-jest": "23.4.2",
    "babel-preset-react-native": "5.0.2",
    "jest": "23.4.2",
    "react-test-renderer": "16.4.1"
  },
  "jest": {
    "preset": "react-native"
  }
}

【问题讨论】:

  • 请同时添加您为解决此错误而执行的步骤。你拆了吗?你有什么链接吗?您是否更改了任何 java/gradle 代码?

标签: react-native gradle expo


【解决方案1】:

我认为您需要将 expokit 添加到您的项目中:https://docs.expo.io/versions/latest/guides/expokit.html

【讨论】:

  • 是的,我分离了项目,但现在我必须在 Expo 中测试应用程序 = 对吗?本机插件将在 Expo 应用程序中运行吗??
猜你喜欢
  • 1970-01-01
  • 2022-11-10
  • 2020-06-10
  • 2020-04-03
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2021-04-25
  • 1970-01-01
相关资源
最近更新 更多