When installing \'react-native init AwesomeProject\' I get this error when I run react-native run-android
:
Could not determine
which version of gradle do you use in your environment?
If you use gradle version 5.x you have to modify 「task wrapper」 as below.
task wrapper(type: Wrapper) {
gradleVersion = '4.4'
distributionUrl = distributionUrl.replace("bin", "all")
}
↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓
wrapper {
gradleVersion = '4.4'
distributionUrl = distributionUrl.replace("bin", "all")
}