Код: Выделить всё
Failed to install the app. Command failed with exit code 1: gradlew.bat app:installDevDebug -PreactNativeDevServerPort=8081 -PreactNativeArchitectures=x86_64
e: file:///C:/Users/jvito/Development/soccerskills-app/node_modules/@react-native/popup-menu-android/android/build.gradle.kts:10:9: Unresolved reference: libs e: file:///C:/Users/jvito/Development/soccerskills-app/node_modules/@react-native/popup-menu-android/android/build.gradle.kts:11:9: Unresolved reference: libs FAILURE: Build failed with an exception. * Where: Build file 'C:\Users\jvito\Development\soccerskills-app\node_modules\@react-native\popup-menu-android\android\build.gradle.kts' line: 10 * What went wrong: Script compilation errors: Line 10: alias(libs.plugins.android.library) ^ Unresolved reference: libs Line 11: alias(libs.plugins.kotlin.android) ^ Unresolved reference: libs 2 errors
node_modules/@react-native/popup-menu-android/android/build.gradle.kts
Код: Выделить всё
plugins {
id("com.facebook.react")
alias(libs.plugins.android.library)
alias(libs.plugins.kotlin.android)
}
android {
compileSdk = libs.versions.compileSdk.get().toInt()
buildToolsVersion = libs.versions.buildTools.get()
namespace = "com.facebook.react.popupmenu"
defaultConfig { minSdk = libs.versions.minSdk.get().toInt() }
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
}
kotlin {
jvmToolchain(17)
explicitApi()
}
dependencies {
// Build React Native from source
implementation(project(":packages:react-native:ReactAndroid"))
}
Подробнее здесь: https://stackoverflow.com/questions/790 ... android-bu