question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Could not download antlr.jar while building android

See original GitHub issue

Description

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:closed
  • Created 6 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
moeinrahimicommented, Apr 20, 2017

@MHasanian I set proxy for npm via this commands

npm config set proxy http://proxy.company.com:8080
npm config set https-proxy http://proxy.company.com:8080
0reactions
mhasaniancommented, Apr 19, 2017

I have exact same problem. i checked android sdk installed correctly. so can i ask you how to solved this problem?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found