App release error: Unoptimized APK

When uploading my app's APK to Google Play Console I get the following error:

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.

I have tried opening the app in Android Studio but get various issues when trying to export an APK. Is there any solution?
1 person has
this problem
+1
Reply