am making an android app using react native and the error am getting is could not find the build gradle
here is the content in build gradle inside android studio. the distrubution url is gradle 6.9.
ext {
buildToolsVersion = "30.0.2"
minSdkVersion = 21
compileSdkVersion = 30
targetSdkVersion = 30
ndkVersion = "21.4.7075529"
}
repositories {
mavenCentral()
}
dependencies {
classpath("com.android.tools.build:gradle:4.2.2")
}
}
allprojects {
repositories {
mavenCentral()
mavenLocal()
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url("$rootDir/../node_modules/react-native/android")
}
maven {
// Android JSC is installed from npm
url("$rootDir/../node_modules/jsc-android/dist")
}
maven { url 'https://www.jitpack.io' }
}
}```
have being trying to solve this for hours with no avail. please do help out