[x] submitting bug
[x] Android platform react-native
[x] ubuntu 16.04 LTS
I am having issue in creating build by command react-native run-android
Here i am pasted error:
$ react-native run-android Scanning folders for symlinks in /home/pct3/webroot/Hello/node_modules (39ms) JS server already running. Building and installing the app on the device (cd android && ./gradlew installDebug)...
FAILURE: Build failed with an exception.
What went wrong: A problem occurred configuring root project 'Hello'.
Could not resolve all files for configuration ':classpath'. Could not resolve com.android.tools.build:gradle:3.0.1. Required by: project : Could not resolve com.android.tools.build:gradle:3.0.1. Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.0.1/gradle-3.0.1.pom'. Could not GET 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.0.1/gradle-3.0.1.pom'. sun.security.validator.ValidatorException: No trusted certificate found
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Get more help at https://help.gradle.org
BUILD FAILED in 12s 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
Your help will save my day, if you need any extra information let me know.
Github link: Issue
react-native run-android
– Chirag Thaker