Building through android studio vs directly to android

When running my cocos 2d-x project on my device. Is there any advantage to deploying though android studio rather than directly to my android through cmd

Android Studio has the integrated logcat and debugging tools.

The project generation script still needs to build the NDK project for Android Studio.

It seems as though you still need to use the terminal to build the C++ part of the project.

I have to run ndk-build from the proj.android-studio\app\jni folder.

There’s Gradle settings that can be used to make a C++ project and compile it directly in Android Studio…