How to build an Android APK file without using Android Studio in a Capacitor project?

I have not done this yet, please share your solution if you do it.