Could not download antlr.jar while building android
See original GitHub issueDescription
I created a new react app and tried to build android version by running command : react-native run-android i get following error :
react-native run-android
Scanning 560 folders for symlinks in /home/moein/AwesomeProject/node_modules (5ms)
Starting JS server...
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 'AwesomeProject'.
> Could not resolve all dependencies for configuration ':classpath'.
   > Could not download antlr.jar (org.antlr:antlr:3.5.2)
      > Could not get resource 'https://jcenter.bintray.com/org/antlr/antlr/3.5.2/antlr-3.5.2.jar'.
         > Could not HEAD 'https://jcenter.bintray.com/org/antlr/antlr/3.5.2/antlr-3.5.2.jar'.
            > Connect to jcenter.bintray.com:443 [jcenter.bintray.com/75.126.118.188] failed: Connection timed out
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 2 mins 15.115 secs
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/android-setup.html
I’m also using tor so it’s not related to restriction or whatever
Additional Information
react-native-cli: 2.0.1 react-native: 0.43.2
- Platform: Android
- Development Operating System: Linux Ubuntu 16.04
- Dev tools: android sdk version : 24.3.4
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (1 by maintainers)
 Top Results From Across the Web
Top Results From Across the Web
unable to download antlr when building project - Stack Overflow
I downloaded antlr-3.5.2.jar, but I don't know what to do with it to solve the problem. Any ideas? Thanks. android · dart ...
Read more >ANTLR
ANTLR (ANother Tool for Language Recognition) is a powerful parser generator for reading, processing, executing, or translating structured text or binary files.
Read more >Error when trying to build apk - Ionic Forum
This will become an error in Angular v6.x Warning: Can't resolve all ... .com/com/android/tools/build/gradle/3.0.0/gradle-3.0.0.jar Download ...
Read more >cannot resolve symbol java intellij gradle - เมือง โบราณ
Why is this causing compile errors in one file in my fairly large Android Studio project? ... IDEA will not run the shadowJar...
Read more >Gradle build failed & Resolution failed - Unity Forum
I'm getting two errors one when i try to build my game using gradle, ... Could not download antlr4.jar (org.antlr:antlr4:4.5.3)
Read more > Top Related Medium Post
Top Related Medium Post
No results found
 Top Related StackOverflow Question
Top Related StackOverflow Question
No results found
 Troubleshoot Live Code
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free Top Related Reddit Thread
Top Related Reddit Thread
No results found
 Top Related Hackernoon Post
Top Related Hackernoon Post
No results found
 Top Related Tweet
Top Related Tweet
No results found
 Top Related Dev.to Post
Top Related Dev.to Post
No results found
 Top Related Hashnode Post
Top Related Hashnode Post
No results found

@MHasanian I set proxy for npm via this commands
I have exact same problem. i checked android sdk installed correctly. so can i ask you how to solved this problem?