問題描述
我仍然在 python 和 kivy 中非常菜鳥.
im very noob still in python and kivy.
無論如何,我正在制作一個(gè)簡單的 Android 應(yīng)用程序,它只顯示一個(gè)標(biāo)簽.現(xiàn)在我正在嘗試通過 buildozer 將該 python 文件打包到 apk.buildozer init
工作,但隨后 buildozer -v android debug
沒有并給出錯(cuò)誤 Unknown command/target android_old
.
Anyways, I'm making a simple android app, which just showing a single label.
Now I'm trying to package that python file to an apk via buildozer.
The buildozer init
works, but then the buildozer -v android debug
doesnt and give an error Unknown command/target android_old
.
誰能幫我解決這個(gè)問題?謝謝
Anyone can help me resolve this? Thanks
推薦答案
我知道現(xiàn)在回答這個(gè)問題為時(shí)已晚,但我也遇到了同樣的問題,因?yàn)槲乙彩沁@個(gè)領(lǐng)域的新手.buildozer好像不兼容windows,可以用Google Colab代替.
I know it is too late to answer this question but I had the same problem since I am new to this field too. It seems that buildozer is not compatible with windows, instead you can use Google Colab.
Google Colab 提供 CPU 來運(yùn)行您的 python 代碼,它是基于 Ubuntu 的.
Google Colab provides CPU to run your python code and it is Ubuntu based.
請(qǐng)參考以下鏈接在 Google Colab 上運(yùn)行您的代碼https://towardsdatascience.com/3-ways-to-convert-python-app-into-apk-77f4c9cd55af
Refer the following link to run your code on Google Colab https://towardsdatascience.com/3-ways-to-convert-python-app-into-apk-77f4c9cd55af
這篇關(guān)于Buildozer 未知命令/目標(biāo) android_old的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!