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:
- Create prebuild to get android and ios folders and code
npx expo prebuild --clean- go in android dir, and run following commands
cd androidfor development APK:
./gradlew assembleDebugfor Release APK:
./gradlew assembleReleaseafter 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!