ошибка после установки react-native-router-flux

#android #reactjs #react-native #node-modules #react-native-router-flux

#Android #reactjs #react-native #узел-модули #react-native-router-flux

Вопрос:

Я создал новый простой проект react-native и после установки react-native-router-flux с помощью react-native установите react-native-router-flux и запустите с помощью react-native run-android я увидел эту ошибку, и проект не запускается.

введите описание изображения здесь

моя необработанная ошибка:

СБОЙ: сбой сборки с исключением.

  • Что пошло не так: не удалось определить зависимости задачи ‘: app: mergeDebugAssets’.
 Could not resolve all task dependencies for configuration ':app:debugRuntimeClasspath'.
Could not find androidx.transition:transition:1.1.0.
     Searched in the following locations:
       - file:/C:/Users/Sina/.m2/repository/androidx/transition/transition/1.1.0/transition-1.1.0.pom
       - file:/C:/Users/Sina/Desktop/HermesLock3/node_modules/react-native/android/androidx/transition/transition/1.1.0/transition-1.1.0.pom
       - file:/C:/Users/Sina/Desktop/HermesLock3/node_modules/jsc-android/dist/androidx/transition/transition/1.1.0/transition-1.1.0.pom
       - https://dl.google.com/dl/android/maven2/androidx/transition/transition/1.1.0/transition-1.1.0.pom
       - https://jcenter.bintray.com/androidx/transition/transition/1.1.0/transition-1.1.0.pom
       - https://www.jitpack.io/androidx/transition/transition/1.1.0/transition-1.1.0.pom
     Required by:
         project :app > project :react-native-reanimated
Could not find androidx.fragment:fragment:1.2.1.
     Searched in the following locations:
       - file:/C:/Users/Sina/.m2/repository/androidx/fragment/fragment/1.2.1/fragment-1.2.1.pom
       - file:/C:/Users/Sina/Desktop/HermesLock3/node_modules/react-native/android/androidx/fragment/fragment/1.2.1/fragment-1.2.1.pom
       - file:/C:/Users/Sina/Desktop/HermesLock3/node_modules/jsc-android/dist/androidx/fragment/fragment/1.2.1/fragment-1.2.1.pom
       - https://dl.google.com/dl/android/maven2/androidx/fragment/fragment/1.2.1/fragment-1.2.1.pom
       - https://jcenter.bintray.com/androidx/fragment/fragment/1.2.1/fragment-1.2.1.pom
       - https://www.jitpack.io/androidx/fragment/fragment/1.2.1/fragment-1.2.1.pom
     Required by:
         project :app > project :react-native-screens
Could not find androidx.coordinatorlayout:coordinatorlayout:1.1.0.
     Searched in the following locations:
       - file:/C:/Users/Sina/.m2/repository/androidx/coordinatorlayout/coordinatorlayout/1.1.0/coordinatorlayout-1.1.0.pom
       - file:/C:/Users/Sina/Desktop/HermesLock3/node_modules/react-native/android/androidx/coordinatorlayout/coordinatorlayout/1.1.0/coordinatorlayout-1.1.0.pom
       - file:/C:/Users/Sina/Desktop/HermesLock3/node_modules/jsc-android/dist/androidx/coordinatorlayout/coordinatorlayout/1.1.0/coordinatorlayout-1.1.0.pom
       - https://dl.google.com/dl/android/maven2/androidx/coordinatorlayout/coordinatorlayout/1.1.0/coordinatorlayout-1.1.0.pom
       - https://jcenter.bintray.com/androidx/coordinatorlayout/coordinatorlayout/1.1.0/coordinatorlayout-1.1.0.pom
       - https://www.jitpack.io/androidx/coordinatorlayout/coordinatorlayout/1.1.0/coordinatorlayout-1.1.0.pom
     Required by:
         project :app > project :react-native-screens
Could not find com.google.android.material:material:1.1.0.
     Searched in the following locations:
       - file:/C:/Users/Sina/.m2/repository/com/google/android/material/material/1.1.0/material-1.1.0.pom
       - file:/C:/Users/Sina/Desktop/HermesLock3/node_modules/react-native/android/com/google/android/material/material/1.1.0/material-1.1.0.pom
       - file:/C:/Users/Sina/Desktop/HermesLock3/node_modules/jsc-android/dist/com/google/android/material/material/1.1.0/material-1.1.0.pom
       - https://dl.google.com/dl/android/maven2/com/google/android/material/material/1.1.0/material-1.1.0.pom
       - https://jcenter.bintray.com/com/google/android/material/material/1.1.0/material-1.1.0.pom
       - https://www.jitpack.io/com/google/android/material/material/1.1.0/material-1.1.0.pom
     Required by:
         project :app > project :react-native-screens
Could not find androidx.fragment:fragment:1.2.1.
     Searched in the following locations:
       - file:/C:/Users/Sina/.m2/repository/androidx/fragment/fragment/1.2.1/fragment-1.2.1.pom
       - file:/C:/Users/Sina/Desktop/HermesLock3/node_modules/react-native/android/androidx/fragment/fragment/1.2.1/fragment-1.2.1.pom
       - file:/C:/Users/Sina/Desktop/HermesLock3/node_modules/jsc-android/dist/androidx/fragment/fragment/1.2.1/fragment-1.2.1.pom
       - https://dl.google.com/dl/android/maven2/androidx/fragment/fragment/1.2.1/fragment-1.2.1.pom
       - https://jcenter.bintray.com/androidx/fragment/fragment/1.2.1/fragment-1.2.1.pom
       - https://www.jitpack.io/androidx/fragment/fragment/1.2.1/fragment-1.2.1.pom
     Required by:
         project :app > com.facebook.flipper:flipper:0.37.0 > androidx.appcompat:appcompat:1.1.0
  
  • Попробуйте:
    Запустите с параметром —stacktrace, чтобы получить трассировку стека. Запустите с параметром —info или —debug, чтобы получить больше выходных данных журнала. Запустите с помощью —scan, чтобы получить полную информацию.

  • Получите дополнительную помощь на https://help.gradle.org

СБОЙ СБОРКИ за 3 м 43 с

ошибка при установке приложения. Убедитесь, что у вас настроена среда разработки Android:https://reactnative.dev/docs/environment-setup. Запустите CLI с флагом —verbose для получения более подробной информации. Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081

Ответ №1:

Если вы из страны, находящейся под санкциями, лучше использовать прокси и повторить попытку.