I need help. I can't upgrade gradle version of my react-native project.
I try a lot of things, downloaded last version of Android Studio & SDK Tools etc.
I changed this file \android\gradle\wrapper\gradle-wrapper.properties, I tried to upgrade using npm install -g react-native-git-upgrade
but still I can't upgrade it.
When I react-native eject It's exports "distributionUrl=https://services.gradle.org/distributions/gradle-2.14.1-all.zip"
Waiting for answers.
In android/build.gradle you have to edit this line
classpath 'com.android.tools.build:gradle:x.y.z'
Change x.y.z with the version you want. Edit it with Android Studio then click Sync now
Thank you so much! Worked! react-native-google-maps
How to understand which gradle version I need to update to?
@Vadim I have found this link helpful to understand which gradle version you need to update developer.android.com/studio/releases/…
But that's the Gradle Tools version for Android, not Gradle itself.
Everytime I do this, it corrupts my entire project. Gradle is the worst, I mean the worst. days, weeks wasted on their horrible compatibility.