Python 在 Windows 中 Kivy 到 Apk
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/19735768/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Kivy to Apk in Windows
提问by hamidfzm
I'm using windows right now and I want to ask is there any good tools to package a kivy app for android in windows or do I have to use Linux distributions?
我现在正在使用 windows,我想问一下是否有任何好的工具可以在 windows 中为 android 打包 kivy 应用程序,或者我必须使用 Linux 发行版吗?
And also is there anyway to use kivy for python 3.3.2 (Latest)?
无论如何,是否可以将 kivy 用于 python 3.3.2(最新)?
采纳答案by inclement
I'm using windows right now and I want to ask is there any good tools to package a kivy app for android in windows or I have t use Linux distributions?
我现在正在使用 windows,我想问一下有没有什么好的工具可以在 windows 中为 android 打包 kivy 应用程序,或者我没有使用 Linux 发行版?
Unfortunately the build tools don't work on windows right now. I think there are technical barriers to do with cross compilation.
不幸的是,构建工具现在不适用于 Windows。我认为交叉编译存在技术障碍。
Have you seen the kivy virtual machine, available at http://kivy.org/#download? This is an Ubuntu linux image that already has the tools installed and set up. You should be able to run it in virtualbox on any recentish machine.
您是否看过http://kivy.org/#download 上提供的 kivy 虚拟机?这是一个已经安装并设置了工具的 Ubuntu linux 映像。您应该能够在任何最近的机器上的 virtualbox 中运行它。
There's also an online interface to the android component of the buildozertool (which can manage the entire android or ios build process, but I think doesn't work on windows at the moment), available at http://android.kivy.org/. You can upload your project there to have the apk built. I haven't tried this service, but it should work.
还有一个buildozer工具的 android 组件的在线界面(它可以管理整个 android 或 ios 构建过程,但我认为目前不适用于 windows),可在http://android.kivy.org 获得/. 您可以在那里上传您的项目以构建 apk。我还没有尝试过这项服务,但它应该可以工作。
And also is there anyway to use kivy for python 3.3.2?
还有无论如何要为python 3.3.2使用kivy吗?
The next release of kivy will support python 3, and the github master branch at https://github.com/kivy/kivyshould be mostly (if not all) working.
kivy 的下一个版本将支持 python 3,并且https://github.com/kivy/kivy的 github master 分支应该大部分(如果不是全部)工作。
回答by Zagi
You can use the Kivy launcher now :)
您现在可以使用 Kivy 启动器 :)
https://kivy.org/doc/stable/guide/packaging-android.html
https://kivy.org/doc/stable/guide/packaging-android.html
unfortunately i'm stuck with an issue right now on one of my app.
不幸的是,我现在在我的一个应用程序上遇到了一个问题。