сталкиваюсь с ошибкой
Код: Выделить всё
Settings file 'mobile/android/settings.gradle' line: 2
* 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)
Код: Выделить всё
pluginManagement { includeBuild("../node_modules/@react-native/gradle-plugin") }
plugins { id("com.facebook.react.settings") }
extensions.configure(com.facebook.react.ReactSettingsExtension){ ex -> ex.autolinkLibrariesFromCommand() }
rootProject.name = 'mobileAppName'
include ':app'
includeBuild('../node_modules/@react-native/gradle-plugin')
попробовал закомментировать строку и добавить плагин в android/app/build.gradle
например итак
Код: Выделить всё
apply plugin: "com.android.application"
apply plugin: "com.facebook.react"
apply plugin: "com.facebook.react.settings"
apply plugin: "com.google.gms.google-services"
apply plugin: "com.google.firebase.crashlytics"
apply plugin: 'com.google.firebase.firebase-perf'
apply plugin: "org.jetbrains.kotlin.android"
Код: Выделить всё
* What went wrong:
A problem occurred evaluating settings 'android'.
> Could not get unknown property 'com' for settings 'android' of type org.gradle.initialization.DefaultSettings.
from line
extensions.configure(com.facebook.react.ReactSettingsExtension){ ex -> ex.autolinkLibrariesFromCommand() }
есть ли у кого-нибудь решение или обходной путь, чтобы получить плагин «com.facebook.react» .settings") работает??
Подробнее здесь: https://stackoverflow.com/questions/788 ... of-the-fol
Мобильная версия