Par*_*tia 4 android localization google-play
可能是因为Google Play商店不允许用户下载它认为用户不需要的资源文件。
谁能帮我?谢谢。
Vru*_*tel 11
问题是您正在使用.aab文件在Play商店上发布应用。安装时会根据用户的电话设置删除本地化文件。
要解决此问题,您需要将此行放入build.gradle文件中,然后再次尝试上传
android {
//... removed for brevity
bundle {
language {
enableSplit = false
}
}
}
Run Code Online (Sandbox Code Playgroud)
正如@Vrushi Patel 所说,这与 Android App Bundles 相关。要解决此问题,您必须编辑基本模块的build.gradle 中的android.bundle块,如下所示,如官方文档中所述:
android {
// When building Android App Bundles, the splits block is ignored.
splits {...}
// 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
// dynamic 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
}
}
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
889 次 |
| 最近记录: |