FAILURE : Сборка не удалась с исключением.
- Что пошло не так:
Произошла проблема при настройке проекта ':react-native-nested-scroll-view' .
Искал в следующих местах:
- https://jcenter.bintray.com/com/android/tools /build/gradle/2.3.3/gradle-2.3.3.pom
Если артефакт, который вы пытаетесь получить, можно найти в репозитории, но без метаданных в формате «Maven POM», вам необходимо настроить ' MetadataSources { ... }' объявления репозитория.
Требуется:
проектом :react-native-nested-scroll-view
gradle-wrapper.properties:
Код: Выделить всё
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Код: Выделить всё
// Top-level build file where you can add configuration options common to all sub-projects/modules.
def REACT_NATIVE_VERSION = new File(['node', '--print',"JSON.parse(require('fs').readFileSync(require.resolve('react-native/package.json'), 'utf-8')).version"].execute(null, rootDir).text.trim())
buildscript {
ext {
buildToolsVersion = "33.0.3"
minSdkVersion = 21
compileSdkVersion = 31
targetSdkVersion = 31
playServicesVersion = "17.0.0"
androidMapsUtilsVersion = "2.2.0"
supportLibVersion = "28.0.0"
agp_version = '4.2.0'
kotlin_version = "1.5.31"
}
repositories {
google()
jcenter()
mavenCentral()
}
dependencies {
classpath("com.android.tools.build:gradle:$agp_version")
//classpath("com.android.tools.build:gradle:2.3.3")
classpath('com.google.gms:google-services:4.3.5')
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
configurations.all {
resolutionStrategy {
// Remove this override in 0.65+, as a proper fix is included in react-native itself.
force "com.facebook.react:react-native:" + REACT_NATIVE_VERSION
}
}
repositories {
google()
mavenCentral()
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url("$rootDir/../node_modules/react-native/android")
}
maven {
// Android JSC is installed from npm
url("$rootDir/../node_modules/jsc-android/dist")
}
jcenter()
maven { url 'https://www.jitpack.io' }
}
}
"react-native-nested-scroll-view": "^9.0.0",
У меня есть добавлен внутри зависимостей classpath('com.android.tools.build:gradle:2.3.3')
У меня есть больше репозиториев, таких как google, mavenCentral и maven
Я удалил папку node-module и запустил npm установить
Подробнее здесь: https://stackoverflow.com/questions/790 ... d-emulator
Мобильная версия