Problems with "react-native run-android" in linux

0

I am starting to venture into the world of React-Native for mobile application development.

I'm emulating the APP on a real device, but I can not make the rec-native run-android function, it returns the following console message:

Starting JS server...
Building and installing the app on the device (cd android && ./gradlew installDebug)...
Starting a Gradle Daemon, 1 busy Daemon could not be reused, use --status for details

FAILURE: Build failed with an exception.

* What went wrong:
Could not resolve all files for configuration ':app:debugCompileClasspath'.
> Could not resolve com.squareup.okhttp3:okhttp:3.11.0.
  Required by:
      project :app > com.facebook.react:react-native:0.57.8
    > Could not resolve com.squareup.okhttp3:okhttp:3.11.0.
        > Could not get resource 'https://jcenter.bintray.com/com/squareup/okhttp3/okhttp/3.11.0/okhttp-3.11.0.pom'.
            > Could not GET 'https://jcenter.bintray.com/com/squareup/okhttp3/okhttp/3.11.0/okhttp-3.11.0.pom'.
                > Connection reset
> Could not resolve com.squareup.okhttp3:okhttp-urlconnection:3.11.0.
  Required by:
      project :app > com.facebook.react:react-native:0.57.8
    > Could not resolve com.squareup.okhttp3:okhttp-urlconnection:3.11.0.
        > Could not get resource 'https://jcenter.bintray.com/com/squareup/okhttp3/okhttp-urlconnection/3.11.0/okhttp-urlconnection-3.11.0.pom'.
            > Could not GET 'https://jcenter.bintray.com/com/squareup/okhttp3/okhttp-urlconnection/3.11.0/okhttp-urlconnection-3.11.0.pom'.
                > Connection reset
> Could not resolve com.squareup.okhttp3:okhttp:3.11.0.
  Required by:
      project :app > com.facebook.react:react-native:0.57.8 > com.facebook.fresco:imagepipeline-okhttp3:1.10.0
    > Could not resolve com.squareup.okhttp3:okhttp:3.11.0.
        > Could not get resource 'https://jcenter.bintray.com/com/squareup/okhttp3/okhttp/3.11.0/okhttp-3.11.0.pom'.
            > Could not GET 'https://jcenter.bintray.com/com/squareup/okhttp3/okhttp/3.11.0/okhttp-3.11.0.pom'.
                > Connection reset

* 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.

* Get more help at https://help.gradle.org

BUILD FAILED in 1m 40s
1 actionable task: 1 executed
Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have
set up your Android development environment:
https://facebook.github.io/react-native/docs/getting-started.html

I do not know why that message comes out, and the truth that is already frustrating me.

    
asked by Jorge Ernesto RONCONI 20.12.2018 в 16:18
source

0 answers