[Android Studio] NDK not configured when cocos plugin is used

did you compile it like this?

cocos compile -p android --android-studio

See more here: How to use v3.7 pro.android-studio?