Google Play shows Unoptimized APK for Cordova App
Solution 1
This is just a warning, and you can carry on uploading Cordova APKs. The Cordova team know about this, and you can follow their feature request to support Android App Bundle here
Solution 2
Well, it's just a warning I think. You could ignore it and rollout the release. The problem is that you haven't completed and provided enough information for important contents like store listing, content rate, pricing & distribution, and app release. When all of them show "green check", you could rollout the app.
Solution 3
According to your mention problem, you can solve in cordova 9.0.0
by this way:
Go to
your respective project directory, then go to platforms/android
directory, then open cmd
/terminal
and write this command
as gradlew bundle
. After completing this process, It'll be generated app.aab
. You can find the output into the outputs/bundle
directory.
Solution 4
The disadvantage is what i saw is, that in the Play Store there will be a message " your app might not be optimized for your device" that is annoying, and this may force you to use the bundle and Google's signing. Because people might consider not to use your app, while in fact there is nothing wrong with it. Even if an app is just 12MB, Google is going to say that it is too big. But i don't know if it works corectly if you use the bundle method with apps not generated by Android Studio.
Related videos on Youtube
Comments
-
Yesudass Moses over 1 year
I was trying to publish my first Cordova app on Google Playstore. When I upload my release apk, it shows below warning and I cannot rollout the release.
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.
-
Sarath Kumar about 5 yearsgot any solution?
-
-
Agilanbu almost 5 yearsPlease Take the Tour , and be sure with your answer link While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. how to answer
-
MobDev over 4 yearsIs this documented some place on the android documentation?
-
jjsjjs over 4 yearsonce you are in the developers console you'll get links to the info about it and else you can find it on developer.android.com
-
Asqan over 4 yearsso, you say, if these information is filled in, github.com/apache/cordova-android/issues/729 is no more an issue?
-
Gia Ân Ngô Triệu over 4 years@Asqan Fill in all these information is just a way help you release your app immediately. It will skip App Bundle problem, but it don't solve completely the warning from Google.
-
Devner over 4 yearsI just tested this today and I totally second what @GiaÂnNgôTriệu has to say.