Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

ENV Variables NOT getting updated in the gradle processes

./gradlew assembleRelease does not pick up the latest terminal env variable. Tried restarting the terminal and ./gradlew clean but still no use.

I’ve logged process.env variables in metro config. If I start it with npx react-native start --reset-cache it shows the latest process env variable. But if I try ./gradlew assembleRelease it shows old assigned env variables.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

Try restarting the gradle process.

Step 1: ./gradlew --stop
Step 2: ./gradlew assembleRelease

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading