writing this because all internet is filled with creating APK using EAS service, which is good, but it’s giving me AAB file which i can’t install on the android phone, just give me APK file!!!!

steps to create APK for android file:

  1. Create prebuild to get android and ios folders and code
npx expo prebuild --clean
  1. go in android dir, and run following commands
cd android

for development APK:

./gradlew assembleDebug

for Release APK:

./gradlew assembleRelease

after all things done and no error(google error if you encounter), you will find your APK in following dir:

android
└── app
    └── build
        └── outputs
            └── apk
                └── release
                    └── app-release.apk

if your system says it doesn’t know what is gradlew or gradle,

open your project in android studio, and then there will be button for gradle sync which will download whatever is needed!