# #react-native #react-native-navigation #react-native-firebase
#реагировать-родной #реагировать-родной-навигация #реагировать-родной-огневая база
Вопрос:
Пожалуйста, помогите решить эту проблему.Я работаю над старым исходным кодом, написанным 3 года назад, и я не могу создать проект. Когда я строю gradlew, он выдает следующие ошибки
СБОЙ: Сборка завершилась неудачно с исключением.
- Что пошло не так: Не удалось определить зависимости задачи»: react-native-firebase:generateReleaseRFile».
Не удалось разрешить все зависимости задач для конфигурации»: react-native-firebase:releaseCompileClasspath». Не удалось разрешить com.squareup.okhttp3:okhttp:{строго 3.11.0}. Требуется: проект :реагировать родной военнослужащих gt; не удалось найти версию ‘ком.squareup.okhttp3:okhttp’, который удовлетворяет ограничениям версия: prasiam путь зависимости’.трейдер:реагировать родной военнослужащих:неизвестная’ —gt; ‘COM на.facebook.реагировать:реагировать родной:0.57.8’ —gt; ‘COM на.squareup.okhttp3:okhttp:3.11. 0’ путь ограничения ‘prasiam.трейдер:react-native-firebase:не указан’ —gt; ‘com.squareup.okhttp3:okhttp:{строго 3.11.0}’ по следующей причине : Путь к выпуску runtimeclasspath использует путь зависимости версии 3.11.0 ‘prasiam.трейдер:react-native-firebase:не указан’ —gt;gt; ‘com.google.firebase:firebase-perf:17.0.2’ —gt; ‘com.squareup.okhttp3:okhttp:3.0 .0’ Путь зависимости ‘prasiam.trader:react-native-firebase:не указан’ —gt;gt; ‘com.google.firebase:firebase-функции:17.0.0’ —gt; ‘com.squareup.okhttp3:okhtt p:3.12.1’ gt;Путь зависимости ‘прасиам.трейдер:react-native-firebase:не указан’ —gt; ‘com.facebook.react:react-native:0.57.8’ —gt;gt; ‘com.facebook.fresco:imagepipeline-okhttp3:1.10.0’ —gt;gt;gt; ‘com.squareup.okhttp3:okhttp:3.10.0’ Путь зависимости ‘прасиам.трейдер:react-native-firebase:не указан’ —gt;gt;gt;gt; ‘com.facebook.react:react-native:0.57.8’ —gt;gt;gt;gt;gt; ‘com.squareup.okhttp3:ссылка на okhttp-url-адрес:3.11.0’ —gt;gt;gt;gt;gt;gt; ‘com.squareup.okhttp3:okhttp:3.11.0’
Не удалось разрешить com.squareup.okio:okio:{строго 1.14.0}. Требуется: проект :реагировать родной военнослужащих gt; не удалось найти версию ‘ком.squareup.окио:окио’, который удовлетворяет ограничениям версия: prasiam путь зависимости’.трейдер:реагировать родной военнослужащих:неизвестная’ —gt; ‘COM на.facebook.реагировать:реагировать родной:0.57.8’ —gt; ‘COM на.squareup.окио:окио:prasiam 1.14.0′ путь ограничения’.трейдер:реагировать родной военнослужащих:неизвестная’ —gt; ‘COM на.squareup.окио:окио:{строго 1.14.0}’ по следующей причине: отн easeRuntimeClasspath использует версию 1.14.0 путь зависимости ‘prasiam.трейдер:react-native-firebase:не указан’ —gt; ‘com.facebook.react:react-native:0.57.8’ —gt;gt; ‘com.squareup.okhttp3:okhttp:3.12. 1’ —gt;gt;gt; ‘com.squareup.okio:okio:1.15.0’ Путь зависимости ‘prasiam.trader:react-native-firebase:не указан’ —gt;gt;gt;gt; ‘com.google.firebase:firebase-firestore:19.0.2’ —gt; ‘com.squareup.okhttp:okhttp :2.7.5’ —gt;gt; ‘com.squareup.okio:okio:1.6.0’ Путь зависимости ‘prasiam.trader:react-native-firebase:не указан’ —gt;gt;gt; ‘com.google.firebase:firebase-firestore:19.0.2’ —gt; ‘io.grpc:grpc-okhttp:1.21.0’ —gt;gt; ‘com.squareup.okio:okio:1.13.0’
Could not resolve com.squareup.okhttp3:okhttp:3.11.0. Required by: project :react-native-firebase gt; com.facebook.react:react-native:0.57.8 project :react-native-firebase gt; com.squareup.okhttp3:okhttp-urlconnection:3.11.0 gt; Cannot find a version of ‘com.squareup.okhttp3:okhttp’ that satisfies the version constraints: Dependency path ‘prasiam.trader:react-native-firebase:unspecified’ —gt; ‘com.facebook.react:react-native:0.57.8’ —gt; ‘com.squareup.okhttp3:okhttp:3.11. 0’ Constraint path ‘prasiam.trader:react-native-firebase:unspecified’ —gt; ‘com.squareup.okhttp3:okhttp:{strictly 3.11.0}’ because of the following reason : releaseRuntimeClasspath uses version 3.11.0 Dependency path ‘prasiam.trader:react-native-firebase:unspecified’ —gt; ‘com.google.firebase:firebase-perf:17.0.2’ —gt; ‘com.squareup.okhttp3:okhttp:3.0 .0’ Dependency path ‘prasiam.trader:react-native-firebase:unspecified’ —gt; ‘com.google.firebase:firebase-functions:17.0.0’ —gt; ‘com.squareup.okhttp3:okhtt p:3.12.1’ Dependency path ‘prasiam.trader:react-native-firebase:unspecified’ —gt; ‘com.facebook.react:react-native:0.57.8’ —gt; ‘com.facebook.fresco:imagepipeline -okhttp3:1.10.0’ —gt; ‘com.squareup.okhttp3:okhttp:3.10.0’ Dependency path ‘prasiam.trader:react-native-firebase:unspecified’ —gt; ‘com.facebook.react:react-native:0.57.8’ —gt; ‘com.squareup.okhttp3:okhttp-urlco nnection:3.11.0’ —gt; ‘com.squareup.okhttp3:okhttp:3.11.0’
Could not resolve com.squareup.okio:okio:1.14.0. Required by: project :react-native-firebase gt; com.facebook.react:react-native:0.57.8 gt; Cannot find a version of ‘com.squareup.okio:okio’ that satisfies the version constraints: Dependency path ‘prasiam.trader:react-native-firebase:unspecified’ —gt; ‘com.facebook.react:react-native:0.57.8’ —gt; ‘com.squareup.okio:okio:1.14.0’ Constraint path ‘prasiam.trader:react-native-firebase:unspecified’ —gt; ‘com.squareup.okio:okio:{strictly 1.14.0}’ because of the following reason: rel easeRuntimeClasspath uses version 1.14.0 Dependency path ‘prasiam.trader:react-native-firebase:unspecified’ —gt; ‘com.facebook.react:react-native:0.57.8’ —gt; ‘com.squareup.okhttp3:okhttp:3.12. 1’ —gt; ‘com.squareup.okio:okio:1.15.0’ Dependency path ‘prasiam.trader:react-native-firebase:unspecified’ —gt; ‘com.google.firebase:firebase-firestore:19.0.2’ —gt; ‘com.squareup.okhttp:okhttp :2.7.5’ —gt; ‘com.squareup.okio:okio:1.6.0’ Dependency path ‘prasiam.trader:react-native-firebase:unspecified’ —gt; ‘com.google.firebase:firebase-firestore:19.0.2’ —gt; ‘io.grpc:grpc-okhttp:1.21.0 ‘ —gt; ‘com.squareup.okio:okio:1.13.0’
Could not resolve com.squareup.okhttp3:okhttp:3.0.0. Required by: project :react-native-firebase gt; com.google.firebase:firebase-perf:17.0.2 gt; Cannot find a version of ‘com.squareup.okhttp3:okhttp’ that satisfies the version constraints: Dependency path ‘prasiam.trader:react-native-firebase:unspecified’ —gt; ‘com.facebook.react:react-native:0.57.8’ —gt; ‘com.squareup.okhttp3:okhttp:3.11. 0’ Constraint path ‘prasiam.trader:react-native-firebase:unspecified’ —gt; ‘com.squareup.okhttp3:okhttp:{strictly 3.11.0}’ because of the following reason : releaseRuntimeClasspath uses version 3.11.0 Dependency path ‘prasiam.trader:react-native-firebase:unspecified’ —gt; ‘com.google.firebase:firebase-perf:17.0.2’ —gt; ‘com.squareup.okhttp3:okhttp:3.0 .0’ Dependency path ‘prasiam.trader:react-native-firebase:unspecified’ —gt; ‘com.google.firebase:firebase-functions:17.0.0’ —gt; ‘com.squareup.okhttp3:okhtt p:3.12.1’ Dependency path ‘prasiam.trader:react-native-firebase:unspecified’ —gt; ‘com.facebook.react:react-native:0.57.8’ —gt; ‘com.facebook.fresco:imagepipeline -okhttp3:1.10.0’ —gt; ‘com.squareup.okhttp3:okhttp:3.10.0’ Dependency path ‘prasiam.trader:react-native-firebase:unspecified’ —gt; ‘com.facebook.react:react-native:0.57.8’ —gt; ‘com.squareup.okhttp3:okhttp-urlco nnection:3.11.0’ —gt; ‘com.squareup.okhttp3:okhttp:3.11.0’
Could not resolve com.squareup.okhttp3:okhttp:3.12.1. Required by: project :react-native-firebase gt; com.google.firebase:firebase-functions:17.0.0 gt; Cannot find a version of ‘com.squareup.okhttp3:okhttp’ that satisfies the version constraints: Dependency path ‘prasiam.trader:react-native-firebase:unspecified’ —gt; ‘com.facebook.react:react-native:0.57.8’ —gt; ‘com.squareup.okhttp3:okhttp:3.11. 0’ Constraint path ‘prasiam.trader:react-native-firebase:unspecified’ —gt; ‘com.squareup.okhttp3:okhttp:{strictly 3.11.0}’ because of the following reason : releaseRuntimeClasspath uses version 3.11.0 Dependency path ‘prasiam.trader:react-native-firebase:unspecified’ —gt; ‘com.google.firebase:firebase-perf:17.0.2’ —gt; ‘com.squareup.okhttp3:okhttp:3.0 .0’ Dependency path ‘prasiam.trader:react-native-firebase:unspecified’ —gt; ‘com.google.firebase:firebase-functions:17.0.0’ —gt; ‘com.squareup.okhttp3:okhtt p:3.12.1’ Dependency path ‘prasiam.trader:react-native-firebase:unspecified’ —gt; ‘com.facebook.react:react-native:0.57.8’ —gt; ‘com.facebook.fresco:imagepipeline -okhttp3:1.10.0’ —gt; ‘com.squareup.okhttp3:okhttp:3.10.0’ Dependency path ‘prasiam.trader:react-native-firebase:unspecified’ —gt; ‘com.facebook.react:react-native:0.57.8’ —gt; ‘com.squareup.okhttp3:okhttp-urlco nnection:3.11.0’ —gt; ‘com.squareup.okhttp3:okhttp:3.11.0’
Could not resolve com.squareup.okhttp3:okhttp:3.10.0. Required by: project :react-native-firebase gt; com.facebook.fresco:imagepipeline-okhttp3:1.10.0 gt; Cannot find a version of ‘com.squareup.okhttp3:okhttp’ that satisfies the version constraints: Dependency path ‘prasiam.trader:react-native-firebase:unspecified’ —gt; ‘com.facebook.react:react-native:0.57.8’ —gt; ‘com.squareup.okhttp3:okhttp:3.11. 0’ Constraint path ‘prasiam.trader:react-native-firebase:unspecified’ —gt; ‘com.squareup.okhttp3:okhttp:{strictly 3.11.0}’ because of the following reason : releaseRuntimeClasspath uses version 3.11.0 Dependency path ‘prasiam.trader:react-native-firebase:unspecified’ —gt; ‘com.google.firebase:firebase-perf:17.0.2’ —gt; ‘com.squareup.okhttp3:okhttp:3.0 .0’ Dependency path ‘prasiam.trader:react-native-firebase:unspecified’ —gt; ‘com.google.firebase:firebase-functions:17.0.0’ —gt; ‘com.squareup.okhttp3:okhtt p:3.12.1’ Dependency path ‘prasiam.trader:react-native-firebase:unspecified’ —gt; ‘com.facebook.react:react-native:0.57.8’ —gt; ‘com.facebook.fresco:imagepipeline -okhttp3:1.10.0’ —gt; ‘com.squareup.okhttp3:okhttp:3.10.0’ Dependency path ‘prasiam.trader:react-native-firebase:unspecified’ —gt; ‘com.facebook.react:react-native:0.57.8’ —gt; ‘com.squareup.okhttp3:okhttp-urlco nnection:3.11.0’ —gt; ‘com.squareup.okhttp3:okhttp:3.11.0’
Could not resolve com.squareup.okio:okio:1.15.0. Required by: project :react-native-firebase gt; com.squareup.okhttp3:okhttp:3.12.1 gt; Cannot find a version of ‘com.squareup.okio:okio’ that satisfies the version constraints: Dependency path ‘prasiam.trader:react-native-firebase:unspecified’ —gt; ‘com.facebook.react:react-native:0.57.8’ —gt; ‘com.squareup.okio:okio:1.14.0’ Constraint path ‘prasiam.trader:react-native-firebase:unspecified’ —gt; ‘com.squareup.okio:okio:{strictly 1.14.0}’ because of the following reason: rel easeRuntimeClasspath uses version 1.14.0 Dependency path ‘prasiam.trader:react-native-firebase:unspecified’ —gt; ‘com.facebook.react:react-native:0.57.8’ —gt; ‘com.squareup.okhttp3:okhttp:3.12. 1’ —gt; ‘com.squareup.okio:okio:1.15.0’ Dependency path ‘prasiam.trader:react-native-firebase:unspecified’ —gt; ‘com.google.firebase:firebase-firestore:19.0.2’ —gt; ‘com.squareup.okhttp:okhttp :2.7.5’ —gt; ‘com.squareup.okio:okio:1.6.0’ Dependency path ‘prasiam.trader:react-native-firebase:unspecified’ —gt; ‘com.google.firebase:firebase-firestore:19.0.2’ —gt; ‘io.grpc:grpc-okhttp:1.21.0 ‘ —gt; ‘com.squareup.okio:okio:1.13.0’
Could not resolve com.squareup.okio:okio:1.6.0. Required by: project :react-native-firebase gt; com.google.firebase:firebase-firestore:19.0.2 gt; com.squareup.okhttp:okhttp:2.7.5 gt; Cannot find a version of ‘com.squareup.okio:okio’ that satisfies the version constraints: Dependency path ‘prasiam.trader:react-native-firebase:unspecified’ —gt; ‘com.facebook.react:react-native:0.57.8’ —gt; ‘com.squareup.okio:okio:1.14.0’ Constraint path ‘prasiam.trader:react-native-firebase:unspecified’ —gt; ‘com.squareup.okio:okio:{strictly 1.14.0}’ because of the following reason: rel easeRuntimeClasspath uses version 1.14.0 Dependency path ‘prasiam.trader:react-native-firebase:unspecified’ —gt; ‘com.facebook.react:react-native:0.57.8’ —gt; ‘com.squareup.okhttp3:okhttp:3.12. 1’ —gt; ‘com.squareup.okio:okio:1.15.0’ Dependency path ‘prasiam.trader:react-native-firebase:unspecified’ —gt; ‘com.google.firebase:firebase-firestore:19.0.2’ —gt; ‘com.squareup.okhttp:okhttp :2.7.5’ —gt; ‘com.squareup.okio:okio:1.6.0’ Dependency path ‘prasiam.trader:react-native-firebase:unspecified’ —gt; ‘com.google.firebase:firebase-firestore:19.0.2’ —gt; ‘io.grpc:grpc-okhttp:1.21.0 ‘ —gt; ‘com.squareup.okio:okio:1.13.0’
Could not resolve com.squareup.okio:okio:1.13.0. Required by: project :react-native-firebase gt; com.google.firebase:firebase-firestore:19.0.2 gt; io.grpc:grpc-okhttp:1.21.0 gt; Cannot find a version of ‘com.squareup.okio:okio’ that satisfies the version constraints: Dependency path ‘prasiam.trader:react-native-firebase:unspecified’ —gt; ‘com.facebook.react:react-native:0.57.8’ —gt; ‘com.squareup.okio:okio:1.14.0’ Constraint path ‘prasiam.trader:react-native-firebase:unspecified’ —gt; ‘com.squareup.okio:okio:{strictly 1.14.0}’ because of the following reason: rel easeRuntimeClasspath uses version 1.14.0 Dependency path ‘prasiam.trader:react-native-firebase:unspecified’ —gt; ‘com.facebook.react:react-native:0.57.8’ —gt; ‘com.squareup.okhttp3:okhttp:3.12. 1’ —gt; ‘com.squareup.okio:okio:1.15.0’ Dependency path ‘prasiam.trader:react-native-firebase:unspecified’ —gt; ‘com.google.firebase:firebase-firestore:19.0.2’ —gt; ‘com.squareup.okhttp:okhttp :2.7.5’ —gt; ‘com.squareup.okio:okio:1.6.0’ Dependency path ‘prasiam.trader:react-native-firebase:unspecified’ —gt; ‘com.google.firebase:firebase-firestore:19.0.2’ —gt; ‘io.grpc:grpc-okhttp:1.21.0 ‘ —gt; ‘com.squareup.okio:okio:1.13.0’
- Try: Run with —stacktrace option to get the stack trace. Run with —info or —debug option to get more log output. Run with —scan to get full insights.
My Android build.gradle
buildscript { ext { minSdkVersion = 16 minSdkVersion = 19 // Or higher compileSdkVersion = 29 targetSdkVersion = 29 supportLibVersion = "26.1.0" kotlinVersion = "1.3.72" // Or any version above 1.3.x RNNKotlinVersion = kotlinVersion repositories { google() jcenter() mavenLocal() mavenCentral() configurations.all { resolutionStrategy.force 'com.google.code.findbugs:jsr305:2.0.1' } dependencies { classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.72" classpath 'com.android.tools.build:gradle:3.6.0' classpath 'com.google.gms:google-services:4.3.10' } allprojects { repositories { google() mavenLocal() jcenter() maven { // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm url "$rootDir/../node_modules/react-native/android" } maven { url 'https://maven.google.com/' name 'Google' } maven { url 'https://jitpack.io' }
}
subprojects { project.configurations.all { resolutionStrategy.eachDependency { details -gt; if (details.requested.group == 'com.android.support' amp;amp; !details.requested.name.contains('multidex') ) { details.useVersion "29.0.0" }
My App/build.gradle
android { compileSdkVersion 29 buildToolsVersion "29.0.3" defaultConfig { applicationId "com.prasiam.trader" minSdkVersion 21 targetSdkVersion 29 versionCode 4 versionName "1.4" multiDexEnabled = true ndk { abiFilters "armeabi-v7a", "x86" } repositories { jcenter() google() maven { url "https://maven.google.com" } dependencies { implementation(project(':react-native-firebase:')) { transitive = false } // Firebase dependencies implementation platform('com.google.firebase:firebase-bom:29.0.0') implementation "com.google.android.gms:play-services-base:17.6.0" implementation "com.google.firebase:firebase-core" implementation 'com.google.firebase:firebase-messaging:21.1.0' implementation "com.google.firebase:firebase-analytics" implementation "com.google.firebase:firebase-database" implementation "com.google.firebase:firebase-auth" implementation "io.grpc:grpc-core:1.16.1" implementation fileTree(dir: "libs", include: ["*.jar"]) implementation "com.facebook.react:react-native: " // From node_modules implementation project(':react-native-vector-icons') implementation project(':react-native-device-info') implementation project(':react-native-navigation') testImplementation ("org.robolectric:robolectric:4.3"){ exclude group: 'org.apache.maven', module: 'maven-artifact' exclude group: 'org.apache.maven', module: 'maven-artifact-manager' exclude group: 'org.apache.maven', module: 'maven-model' exclude group: 'org.apache.maven', module: 'maven-plugin-registry' exclude group: 'org.apache.maven', module: 'maven-profile' exclude group: 'org.apache.maven', module: 'maven-project' exclude group: 'org.apache.maven', module: 'maven-settings' exclude group: 'org.apache.maven', module: 'maven-error-diagnostics' exclude group: "org.apache.maven.wagon"