Невозможно запустить npx expo run: android на локальном компьютереAndroid

Форум для тех, кто программирует под Android
Anonymous
Невозможно запустить npx expo run: android на локальном компьютере

Сообщение Anonymous »

Когда я запускаю npx expo run:android, я получаю следующую ошибку:
Plugin [id: 'com.facebook.react.settings'] was not found in any of the following sources:


Вот мои настройки.gradle

pluginManagement {
repositories {
google()
mavenCentral()
gradlePluginPortal()
}

def rnPath = ["node", "--print",
"require.resolve('@react-native/gradle-plugin/package.json')"
].execute(null, rootDir).text.trim()

if (rnPath && rnPath != "null") {
includeBuild(new File(rnPath).getParentFile())
} else {
println("⚠️ Could not resolve @react-native/gradle-plugin")
}

def expoPath = ["node", "--print",
"require.resolve('expo-modules-autolinking/android/expo-gradle-plugin/package.json')"
].execute(null, rootDir).text.trim()

if (expoPath && expoPath != "null") {
includeBuild(new File(expoPath).getParentFile())
} else {
println("⚠️ Could not resolve expo-gradle-plugin")
}
}

plugins {
id("com.facebook.react.settings")
id("expo-autolinking-settings")
}

rootProject.name = "test"
include(":app")
project(":app").projectDir = new File(rootDir, "app")



Подробнее здесь: https://stackoverflow.com/questions/798 ... al-machine

Вернуться в «Android»