Reputation: 2177
I am trying to upgrade the gradle wrapper version in my react-native android project.
I did not install gradle globally in my Mac, I just use the wrapper that comes with react-native, it was version 2.14.1. I want to use a library and it requires gradle 4.4+ and I followed the official tutorial. Off the bat, I got this Issue.
I found that whenever I type ./gradlew -v
it will always refer to the /Users/rexlow/.gradle/wrapper/dists
in my user directory, although I already did specify that I want to use gradle-4.4-all.zip
which is the newer version. The zip file is now in my project wrapper folder, (I followed this thread)
As you can see from the image below, I tried to check for the gradle version but it will always show 2.14.1.
Then, I tried deleting the 2.14.1 gradle folder from /Users/rexlow/.gradle/wrapper/dists
and run the version checking command again, and for heaven sake, it went on and download the 2.14.1 version because the folder wasn't there.
How can I altogether use a new gradle version in my project? Altering gradle-wrapper.properties
does not work in my case. Let me know if you need to have a look at other files.
Thanks!
Upvotes: 1
Views: 2421