【问题标题】:Unable to detect AGP versions for included builds. All projects in the build should use the same AGP version无法检测包含构建的 AGP 版本。构建中的所有项目都应使用相同的 AGP 版本
【发布时间】:2022-11-17 23:07:53
【问题描述】:

我在尝试运行我的应用程序时遇到问题, 构建成功,但应用程序打开片刻,然后关闭。 我看到了。

这是我的 package.json

{
  "name": "ProjetShop",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "android": "react-native run-android",
    "ios": "react-native run-ios",
    "start": "react-native start",
    "test": "jest",
    "lint": "eslint ."
  },
  "dependencies": {
    "@react-native-masked-view/masked-view": "^0.2.7",
    "@react-navigation/drawer": "^6.5.0",
    "@react-navigation/native": "^6.0.13",
    "@react-navigation/stack": "^6.3.1",
    "axios": "^0.27.2",
    "react": "17.0.2",
    "react-native": "0.68",
    "react-native-gesture-handler": "^2.6.2",
    "react-native-reanimated": "^2.10.0",
    "react-native-safe-area-context": "^4.3.4",
    "react-native-screens": "^3.17.0"
  },
  "devDependencies": {
    "@babel/core": "^7.19.1",
    "@babel/runtime": "^7.19.0",
    "@react-native-community/eslint-config": "^3.1.0",
    "babel-jest": "^29.0.3",
    "eslint": "^8.23.1",
    "jest": "^29.0.3",
    "metro-react-native-babel-preset": "^0.72.3",
    "react-test-renderer": "17.0.2"
  },
  "jest": {
    "preset": "react-native"
  }
}

我审查了这些解决方案 https://github.com/facebook/react-native/issues/33687 Failed to upgrade AGP version 但是,对我不起作用

【问题讨论】:

    标签: react-native react-native-navigation


    【解决方案1】:

    它可能会下载 kotlin-compiler-embeddable jar!

    这个 jar 下载非常非常慢!

    你需要检查Android工作室。

    需要Android studio构建这个React-native android项目!

    【讨论】:

      猜你喜欢
      • 2023-02-02
      • 1970-01-01
      • 2022-06-20
      • 1970-01-01
      • 1970-01-01
      • 2018-02-03
      • 2021-07-17
      • 2018-11-17
      • 2016-06-06
      相关资源
      最近更新 更多