Error with react-native run-android for gradle version gradle-2.4-all.zip
See original GitHub issueGetting following error in every project that has distributionUrl=https\://services.gradle.org/distributions/gradle-2.4-all.zip in android/gradle/wrapper/gradle-wrapper.properties. When i change the gradle version to gradle-2.2.1-all.zip, everything works fine.
$ react-native run-android
Starting JS server...
Building and installing the app on the device (cd android && ./gradlew installDebug...
Exception in thread "main" java.lang.NullPointerException
at org.gradle.wrapper.BootstrapMainStarter.findLauncherJar(BootstrapMainStarter.java:34)
at org.gradle.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.java:25)
at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:127)
at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)
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
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:7 (1 by maintainers)
Top Results From Across the Web
Getting error while running `react-native run-android`
The Fix. The fix is simply to specify android core version via androidXCore in build.gradle buildscript { ext { buildToolsVersion = "29.0.3 ...
Read more >Addressing common errors in React Native - LogRocket Blog
As a React Native developer, you're bound to run into some errors when developing ... list and check for the latest -all.zip Gradle...
Read more >How to fix all build errors in react native(Android specific).
There are two ways to do this: Method 1:Clean Gradle. Run this code, making sure that Metro is not running: cd android gradlew...
Read more >Speeding up your Build phase - React Native
To mitigate this performance hit, this page shares some suggestions on how to improve your build time. Build only one ABI during development...
Read more >Different Ways to fix "Error running android: Gradle project ...
Different Ways to fix “Error running android: Gradle project sync failed” in Android Studio · Method 1: Restarting your project using Invalidate ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
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
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

FAILURE: Build failed with an exception.
BUILD FAILED
Total time: 21 mins 38.128 secs
i try this but not work