Creating a native build in Cocos creator version 2.4.x

hi,
I followed this document https://docs.cocos.com/creator/2.4/manual/en/publish/setup-native-development.html , but getting some error on compiling it.
i wanted to know , which version of ndk version, Android Gradle plugin version and Gradle version that needs to be used?

which version of cocos are you using? 2.4.7+?

Which version of ndk, Android Gradle plugin version and gradle version are you using.
In my environment:
ndk: 21.1.6352462
gradle pulgin: gradle-6.7.1-all.zip
gradle: classpath ‘com.android.tools.build:gradle:4.2.2’
android studio: 2020.3.1 Patch4, built on Novement 21,2021
If reports error like this: Apps targeting Android 12 and higher are required to specify an explicit value for android:exported when the corresponding component has an intent filter defined. Please add
android:exported to activity, service, receiver.