Does updating the Gradle plugin via Android Studio affect React Native?

Viewed 1109

I really don't know what's going on, but ever since I updated my Gradle plugin in Android Studio (as a suggested update by Android Studio) I've been having issues with npx react-native run-android, or was I never supposed to mess around with the Gradle stuff, leaving that for React Native?

I'm a total noob to React Native framework

Thanks in advance!

PS: This is my first question on StackOverflow, if I went a little bit off the rail, please bear with me.

Screenshot

1 Answers

Yes, it affects just the android perspective of your react-native app.Gradle is a build automation tool . So it's used to make android bundle or apk as you desire.changing the gradle plugin changes the version, and hence impacts. Given that you changed the plaugin, and if its crashing you can revert back. Or suppose some library requires an updated gradle plugin, so you need to update that. That's it.

UPDATE:

distributionUrl=https\://services.gradle.org/distributions/gradle-6.2.1-all.zip

Find this in the gradle-wrapper.properties file. You can change to the versions in their site, like mine has 6.2.1

Feel free for doubts

Related