我在kivy VM中构建了apk,构建后,当我在android上打开应用程序时,崩溃了,我首先遇到此错误:
ImportError: cannot import name _htmlparser
我在互联网上搜索,发现了以下解决方法:Buildozer compiles apk, but it crashes on android
但是在执行此操作之后,再次崩溃,但又出现另一个错误,这是
bs4.FeatureNotFound: Couldn't find a tree builder with the features you requested: html.parser. Do you need to install a parser library?
现在我不知道该怎么办...我试图用soup = BeautifulSoup(RESPONSE.content, "html.parser")
代替soup = BeautifulSoup(RESPONSE.content, "lxml")
但是我遇到了同样的错误
在buildozer.spec文件中,我有以下内容:
https://hastebin.com/ayepobufon.shell
并且所有库都已更新,我使用python2和Kivy VM通过命令buildozer android debug