日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > Android >内容正文

Android

【Android】解决aab上传Google Play后下载语言文件缺失的问题

發布時間:2024/1/8 Android 38 豆豆
生活随笔 收集整理的這篇文章主要介紹了 【Android】解决aab上传Google Play后下载语言文件缺失的问题 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

官網(https://developer.android.com/guide/app-bundle?hl=zh-cn)有對aab的描述:

Google Play 會使用您的 App Bundle 針對每種設備配置生成并提供經過優化的 APK,因此只會下載特定設備所需的代碼和資源來運行您的應用。

有些手機只內置了中文、英文等幾種,如果從Google Play下載應用,那么Google Play會剔除掉其他(它認為是多余的)語言資源文件,從而導致應用切換語言不成功。

解決方法:

gradle那里可以配置是否需要動態分發的內容。

android {...// Instead, use the bundle block to control which types of configuration APKs// you want your app bundle to support.bundle {language {// Specifies that the app bundle should not support// configuration APKs for language resources. These// resources are instead packaged with each base and// feature APK.enableSplit = false}density {// This property is set to true by default.enableSplit = true}abi {// This property is set to true by default.enableSplit = true}} }

如上,language enableSplit = false代表aab不進行分包處理,Google Play下載apk后,語言資源文件是完整的。

更多 Android App Bundle的配置,可查看官網文檔:

https://developer.android.com/guide/app-bundle/configure-base?hl=zh-cn

總結

以上是生活随笔為你收集整理的【Android】解决aab上传Google Play后下载语言文件缺失的问题的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。