Python / Kivy-APK如何使用Android捆绑包修复GooglePlay错误

时间:2019-11-05 23:29:48

标签: 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 apk上找不到任何非编码的东西。我的意思是,我在PyCharm上编码了这个apk,然后在通过keytool签名后使用buildozer创建了该apk。主要问题是 如何使用创建的APK或编码的.py文件在android studio上生成签名的捆绑apk。

非常感谢您的帮助或分享任何文档。

1 个答案:

答案 0 :(得分:2)

Ciao

我从来没有以这种方式构建过Android应用,但我了解您的问题(以及您的无奈)

我环顾四周,发现this

  

如果您不想使用Android Studio或Gradle任务进行构建   捆绑软件-例如,如果您使用自定义构建工具链,则-   可以从命令行使用bundletool从中构建应用程序捆绑包   预编译的代码和资源。如果您尚未这样做,   从GitHub存储库下载bundletool

希望有帮助,
安东尼诺