How to convert android project in apk without android studio

You need to use bundle tool to first create bundle and then use command line to build apk

bundletool build-apks --bundle=/MyApp/my_app.aab -- 
output=/MyApp/my_app.apks
--ks=/MyApp/keystore.jks
--ks-pass=file:/MyApp/keystore.pwd
--ks-key-alias=MyKeyAlias
--key-pass=file:/MyApp/key.pwd

Here is link for more info