简体   繁体   English

来自 buildozer 崩溃的 Kivy Apk 文件

[英]Kivy Apk file from buildozer crashing

I created an Apk file using buildozer, when I use anything from KivyMD 0.102.0, the app does not launch on my honor play.我使用 buildozer 创建了一个 Apk 文件,当我使用 KivyMD 0.102.0 中的任何内容时,该应用程序无法在我的荣誉游戏中启动。 But when not using anything from KivyMD it works with same spec但是当不使用 KivyMD 的任何东西时,它适用于相同的规格

File are in the gdrive folder文件在 gdrive 文件夹中

https://drive.google.com/folderview?id=1x3JKFGyMkk2aVzYpG6j31zmCa4T2CMKA https://drive.google.com/folderview?id=1x3JKFGyMkk2aVzYpG6j31zmCa4T2CMKA

The issue is resolved.问题已解决。

The application was crashing on android该应用程序在 Android 上崩溃

On starting the application it showed kivy logo and then closed在启动应用程序时它显示 kivy 徽标然后关闭

I pulled out Logcat from my device using ADB.我使用 ADB 从我的设备中取出了 Logcat。 The issue is explained below-->问题解释如下-->

The application was not able to link to the 'kivymd' folder.该应用程序无法链接到“kivymd”文件夹。 There was an error in logcat saying that it was not able to find the 'kivymd. logcat 中有一个错误,说它无法找到 'kivymd. app', which is a python file in the kivymd folder. app',它是 kivymd 文件夹中的一个 python 文件。

Actually I did not include the 'kivymd' folder which had to pulled out of "KivyMD" folder that is created after cloning from and running setup.py On placing the kivymd folder in my project folder and cooking the apk, it worked实际上,我没有包含必须从克隆并运行 setup.py 后创建的“KivyMD”文件夹中拉出的“kivymd”文件夹。将 kivymd 文件夹放在我的项目文件夹中并烹饪 apk,它起作用

I also faced the same issue when I used "urllib" python library.当我使用“urllib”python 库时,我也遇到了同样的问题。 It was fixed by exclusively adding it in 'requirements' of buildozer.spec file通过将它专门添加到 buildozer.spec 文件的“要求”中来修复它

So this basically happens when you don't include the libs.因此,当您不包含库时,这基本上会发生。 Required.必需的。 It may also happen due version mismatch of python or kivy也可能由于python或kivy的版本不匹配而发生

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM