python - APK 如何使用 Android Bundle 修复 GooglePlay 错误

标签 python android kivy bundle

我刚刚完成编码并尝试上传到 Google Play。其实上传和编码一样难:)所以,我不得不学习一些关于SDK和架构师的知识。我想出了如何修复和使用它们。但最后,当我尝试在 GooglePlay 上上传时,出现了这个错误。

错误(实际上是警告):

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.

我没有看到任何“通过”按钮或 smt。就像这个警告。所以我想我必须先解决这个问题。

我检查了网站的解决方案,但在 Android Studio apks 上找不到任何非编码的东西。我的意思是,我在 PyCharm 上编写了这个 apk,然后在通过 keytool 签名后使用 buildozer 创建。主要问题是,如何使用我创建的 APK 或编码的 .py 文件在 Android Studio 上生成签名的 bundle apk。

最佳答案

我从来没有用这种方式构建过 Android 应用程序,但我理解你的问题 [和你的挫败感]

我环顾四周,发现 this :

If you don't want to use Android Studio or Gradle tasks to build bundles — for example, if you use a custom build toolchain — you can use bundletool from the command line to build an app bundle from pre-compiled code and resources. If you haven't already done so, download bundletool from the GitHub repository

关于python - APK 如何使用 Android Bundle 修复 GooglePlay 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58720980/

相关文章:

python - 基于动态索引条件向 Pandas DataFrame 添加列

python - 在单独的行中打印列表列表

android - 如何在 Oreo 后台监控地理围栏?

android - 在 kivy 发行版中包含 PySerial 库

python - 带有阈值的混淆矩阵python

python - 使用 tail 和缓冲区获取文件中的最后 K 行

android - 如何使用android.view.SurfaceView

android - 在 Android 中,我们真的需要 Branch 吗?

python - Kivy (Python) TabbedPanel - 不同(动态)大小的选项卡?

python - kivy 进口出了什么问题?