Google Play 显示未优化的 Cordova 应用程序 APK

问题描述:

我试图在 Google Playstore 上发布我的第一个 Cordova 应用程序.当我上传我的发行版 apk 时,它显示以下警告,我无法推出发行版.

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.

未优化的 APK

警告:

此 APK 会导致向用户发送未使用的代码和资源.如果您使用 Android App Bundle,您的应用可能会更小.如果不针对设备配置优化您的应用程序,那么您的应用程序需要在用户设备上下载和安装时比实际需要的更大.较大的应用安装成功率较低,并且会占用用户设备上的存储空间.

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.

这只是一个警告,您可以继续上传 Cordova APK.Cordova 团队知道这一点,您可以在 他们的功能请求以在此处支持 Android App Bundle

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