Building without flag -t app-bundle returns error message below
Unoptimized APK
Warning:
This APK results in unused code and resources being sent to users. Your app could be smaller if you used the Android App Bundle. By not optimizing your app for device configurations, your app is larger to download and install on users’ devices than it needs to be. Larger apps see lower install success rates and take up storage on users’ devices.
Resolution:
Use the Android App Bundle to automatically optimize for device configurations, or manage it yourself with multiple APKs
In your first post you are trying to upload app-bundle as apk. Upload type is recognized based on file extension, it should work correctly if you specify with one of those options
--latest uploads the latest build (default)
--id <id> id of the build to upload
but if you use
--path <path> path to the .apk file
and name your file incorrectly (should be .aab) expo upload will attempt to upload it as a wrong type and fail validation.
If fixing name won’t help please post what exact commands are you using and their output.