eas submit -p android: Google Api Error: Invalid request - Cannot replace a bundle of version code 1 with an APK

I running “expo prebuild” and updated MainActivity.java and working fine on emulator but when I run “eas submit -p android” and I got the following error logs

Specified value for “android.package” in app.json is ignored because an android directory was detected in the project.
EAS Build will use the value found in the native code.
√ What would you like to submit? » Select a build from EAS
√ Which build would you like to submit? » - ID: ****** (1 hour ago)
Looking up credentials configuration for com.example.app…
:heavy_check_mark: Google Service Account Key already set up.

Project ID: ****
Release track: INTERNAL
Changes not sent for a review: false
Release status: COMPLETED
Google Service Account Key:
Key Source : EAS servers
Account Email: ****
Rollout: undefined
Build:
Build ID : *****
Build Date : 10/1/2023, 17:18:19
App Version : 1.1.0
Version code: 12

:heavy_check_mark: Scheduled Android submission

Submission details: Expo****

Waiting for submission to complete. You can press Ctrl+C to exit.
:heavy_multiplication_x: Something went wrong when submitting your app to Google Play Store.

We couldn’t figure out what went wrong. See logs to learn more.

[logs] Starting the submit process
[logs] Downloading archive
[logs] Preparing artifact
[logs] Submitting Android app to Play Store…
[logs] Submitting the app with fastlane supply
[logs] ±------------------------------------------------------------------------------------------------------------------------------------+
[logs] | Summary for supply 2.216.0
|
[logs] ±-----------------------------------±-----------------------------------------------------------------------------------------------+
[logs] | apk | /tmp/submissions/.apk |
[logs] | track | internal
|
[logs] | json_key | /tmp/submissions/
/service-account.json
|
[logs] | package_name | com.
.
|
[logs] | changes_not_sent_for_review | false
|
[logs] | release_status | completed
|
[logs] | skip_upload_apk | false
|
[logs] | skip_upload_aab | false
|
[logs] | skip_upload_metadata | false
|
[logs] | skip_upload_changelogs | false
|
[logs] | skip_upload_images | false
|
[logs] | skip_upload_screenshots | false
|
[logs] | sync_image_upload | false
|
[logs] | track_promote_release_status | completed
|
[logs] | validate_only | false
|
[logs] | check_superseded_tracks | false
|
[logs] | timeout | 300
|
[logs] | deactivate_on_promote | true
|
[logs] | rescue_changes_not_sent_for_review | true
|
[logs] | ack_bundle_installation_warning | false
|
[logs] ±-----------------------------------±-----------------------------------------------------------------------------------------------+
[logs]
[logs] Preparing apk at path ‘/tmp/submissions/****.apk’ for upload…
[logs] Google Api Error: Invalid request - Cannot replace a bundle of version code 1 with an APK. - Retrying…
[logs] Google Api Error: Invalid request - Cannot replace a bundle of version code 1 with an APK. - Retrying…
[logs] Google Api Error: Invalid request - Cannot replace a bundle of version code 1 with an APK. - Retrying…
[logs] Google Api Error: Invalid request - Cannot replace a bundle of version code 1 with an APK. - Retrying…
[logs] Google Api Error: Invalid request - Cannot replace a bundle of version code 1 with an APK. - Retrying…
[logs] [!] Google Api Error: Invalid request - Cannot replace a bundle of version code 1 with an APK.
[logs] Fastlane supply failed
[logs] Failed to submit the app

how are you setting the app version? you might want to follow this guide: App version management - Expo Documentation