FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'planazo'.
Could not resolve all artifacts for configuration ':classpath'.
Could not find com.facebook.react:react-native-gradle-plugin:0.82.1.
Searched in the following locations:
\- https://dl.google.com/dl/android/maven2 ... 0.82.1.pom
\- https://repo.maven.apache.org/maven2/co ... 0.82.1.pom
\- https://maven.pkg.github.com/facebook/r ... 0.82.1.pom
Required by:
root project :
Я пробовал разные версии плагина response-native-gradle, но у меня та же ошибка.
- Версия React Native: ^0.81.1
- Версия Gradle: 8.1.0
- Версия Kotlin: 1.9.10
- Версия Node.js: 22.13.0
- Версия npm: 11.6.2
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
mavenCentral()
maven {
url = uri('https://maven.pkg.github.com/facebook/react-native')
credentials {
username = project.findProperty("gpr.user") ?: System.getenv("GPR_USER")
password = project.findProperty("gpr.token") ?: System.getenv("GPR_TOKEN")
}
}
}
dependencies {
classpath("com.android.tools.build:gradle:8.1.0")
classpath("com.facebook.react:react-native-gradle-plugin:0.71.19") // Reverted to a compatible version
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.10")
// Remove implementation dependencies from buildscript block
}
}
plugin {
id 'com.android.application'
id 'org.jetbrains.kotlin.android'
}
allprojects {
repositories {
google()
mavenCentral()
maven { url 'https://www.jitpack.io' }
maven { url 'https://maven.pkg.github.com/facebook/react-native' }
}
}
apply plugin: "com.facebook.react.rootproject"
Подробнее здесь: https://stackoverflow.com/questions/798 ... e-resolved
Мобильная версия