Convert apk to aab files

Hi,

Is there a way to convert apb to aab files. When I tried to convert it using the andriod studio it gave me errors stating gradle is not installed etc. Is there a tutorial or step by step method to do it.

Regards