使用 expo build 构建 Android 应用程序时出错

问题描述 投票:0回答:1

构建在 gradlew 失败并出现以下错误。

Settings file '/home/expo/workingdir/build/apps/expo/android/settings.gradle' line: 4
 * What went wrong:
Plugin [id: 'com.facebook.react.settings'] was not found in any of the following sources:
 * Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
 * Included Builds (No included builds contain this plugin)
 * Plugin Repositories (plugin dependency must include a version number for this source)`

 * reinstall node_modules
 * npx expo run:android fine
 * eas build failing

构建是使用托管工作流程运行的,因此此设置文件是自动生成的。

android react-native expo
1个回答
0
投票

嗯,我同样的问题。

我做了

npx expo install --fix
,现在我有一个不同的问题:
Unable to resolve "react-native/Libraries/Utilities/DevLoadingView" from "node_modules\@expo\metro-runtime\build\LoadingView.native.js"

在此之前我尝试过:

  • rm -rf node_modules
  • yarn cache clean

我今天建造时注意到

Downloading https://services.gradle.org/distributions/gradle-8.3-all.zip
这很奇怪,因为我之前从未真正注意到这一点
yarn; npx expo prebuild --clean; npx expo run:android

昨天这个项目建设得很好。依赖关系没有改变。我不明白为什么今天坏了?

© www.soinside.com 2019 - 2024. All rights reserved.