Ошибка
При запуске команды:
Код: Выделить всё
npx react-native run-android
Код: Выделить всё
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'AppBarFrontend'.
> Could not resolve all artifacts for configuration ':classpath'.
> Could not find com.facebook.react:react-native-gradle-plugin:.
Required by:
root project :
> Could not find org.jetbrains.kotlin:kotlin-gradle-plugin:.
Required by:
root project :
Код: Выделить всё
buildscript {
ext {
buildToolsVersion = "35.0.0"
minSdkVersion = 24
compileSdkVersion = 35
targetSdkVersion = 34
ndkVersion = "26.1.10909125"
kotlinVersion = "1.9.24"
}
repositories {
google()
mavenCentral()
}
dependencies {
classpath("com.android.tools.build:gradle:8.0.2")
classpath("com.facebook.react:react-native-gradle-plugin:0.75.3")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion")
}
}
allprojects {
repositories {
google()
mavenCentral()
}
}
Запустил
Код: Выделить всё
./gradlew clean and npm install
3. Версия React Native:
Я использую React Native 0.75.3 и
Код: Выделить всё
react-native-community/cli
Дополнительная конфигурация:
Я работаю в среде Windows с использованием VS Code.
Мой файл gradle-wrapper.properties имеет следующую конфигурацию:
Код: Выделить всё
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10-all.zip
Буду очень признателен за любую помощь или предложения по решению этой проблемы. Заранее спасибо!
Подробнее здесь: https://stackoverflow.com/questions/790 ... -plugin-an