【问题标题】:gradlew exited with non-zero code: 1 in viro reactgradlew 以非零代码退出:1 in viro react
【发布时间】:2023-01-04 22:56:23
【问题描述】:

我遵循了this 文档中的每个步骤。但是当我运行 expo 应用程序时出现以下错误。

自 1 周以来,我一直受到这个问题的困扰。请帮忙。

【问题讨论】:

    标签: android react-native augmented-reality gradlew viro-react


    【解决方案1】:

    可能是因为 react-viro 有 "peerDependencies": "react-native": "0.65.1"。它需要 build.gradle 中已弃用的 jcenter() 存储库以支持 viro 使用的 exoplayer 2.7.1。这已从较新版本的 react-native 中删除。可以手动添加:

    android/build.gradle

    ...
     buildscript
      { repositories
        {
          jcenter() // <- Add this line
    ...
     allprojects
      {
        repositories
          {
            jcenter() // <- Add this line
    

    【讨论】:

      猜你喜欢
      • 2020-12-28
      • 1970-01-01
      • 1970-01-01
      • 2020-07-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-07-23
      • 1970-01-01
      相关资源
      最近更新 更多