Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to avoid downloading gradle dependencies each time react-native project is build?

I am working on a react-native android project. For which I am using "react-native run-android" command to build and execute the android project.

But each time I use above command, the react-native system downloads the gradle component while it's already installed in my system. Had cross checked that the installed version is same as that which is about to get install via react-native-cli.

Would like to know is there a way by which the existing downloaded gradle can be used rather than downloading it?

Thanks for reading.

like image 531
not_dying Avatar asked Jan 24 '17 18:01

not_dying


1 Answers

You can use 'react-native start' instead of 'react-native run-android' after building the debug apk.It will start the server without downloading the gradlew properties.

like image 80
Geetha Tulasi Balam Avatar answered Nov 15 '22 16:11

Geetha Tulasi Balam