Android Export APK Errors

Hello everyone, I have a few questions about exporting an app to Android.

When I try to build my project on Cocos Creator, it successfully does it.

However, when I try to build an APK through Android Studio, it fails.

Why isn’t Android Studio creating an APK build properly? What could be the issue?

Another thing too is that when I try to make the project after building in Cocos Creator, it fails.

Is there a build setting that is incorrect in Cocos?

Thanks.

Well it could be a lot of issues.
The first thing I think it could, you need JDK 17.
Also you need the NDK.