在 build.grandle 中指定 android SDK Build Tools 版本不会消除 React Native 中的警告

Bet*_*IGM 5 android reactjs android-gradle-plugin react-native

当我执行 npx react-native run-android 时收到此警告

WARNING:: The specified Android SDK Build Tools version (29.0.3) is ignored, as it is below the minimum supported version (30.0.2) for Android Gradle Plugin 4.2.1.
Android SDK Build Tools 30.0.2 will be used.
To suppress this warning, remove "buildToolsVersion '29.0.3'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.
Run Code Online (Sandbox Code Playgroud)

尽管我已经在 build.grandle 文件中修改了此参数,如下所示:

buildscript {
    ext {
        buildToolsVersion = '30.0.2'
        minSdkVersion = 21
        compileSdkVersion = 30
        targetSdkVersion = 30
        ndkVersion = "23.1.7779620"
        kotlin_version = "1.3.72"
    }
    repositories {
        google()
        jcenter()
    }
    dependencies {
        classpath('com.android.tools.build:gradle:4.2.1')
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}
Run Code Online (Sandbox Code Playgroud)

另外,我已经清理了我的项目并在 android studio 中重新构建它,但当我执行 npx react-native run-android 时仍然收到相同的警告

我错过了什么?