Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I am new to python and buildozer, using buildozer to compile my first android app, #124

Closed
tusharyadav opened this issue Jun 23, 2014 · 13 comments

Comments

@tusharyadav
Copy link

I am new to python and buildozer, using buildozer to compile my first android app using python 3.4 and buildozer version 0.16, so on compiling it is showing -)
I check configration tokens
Unknown command/target android.

@inclement
Copy link
Member

This issue is empty, I guess you did something wrong? Either way, you should post about your problem (include the full buildozer output log) on the kivy mailing list at https://groups.google.com/forum/#!forum/kivy-users

@tusharyadav tusharyadav changed the title I am new to python and buildozer, I am new to python and buildozer, using buildozer to compile my first android app, Jun 23, 2014
@JulianVolodia
Copy link

python-for-android still not work on Windows? :)

http://stackoverflow.com/questions/24382262/unable-to-compile-a-python-script-using-buildozer

@inclement
Copy link
Member

Yes, python-for-android still does not work on Windows.

On 01/06/16 03:04, Volodia wrote:

python-for-android still not work on Windows? :)

http://stackoverflow.com/questions/24382262/unable-to-compile-a-python-script-using-buildozer


You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
#124 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/ABNQm2wIbcDiZjipb9w0I4lXanULI39-ks5qHOjJgaJpZM4CG0BY.

@ihavenonickname
Copy link

I created the app from this tutorial. It works fine on desktop. The following command:

python main.py

opens a new window and the game runs.

Unfortunately, when I try to run it on my Android device:

buildozer android debug deploy run

I see a slightly different output from the one described by OP:

# Check configuration tokens
Buildozer is running as root!
This is not recommended, and may lead to problems later.
Are you sure you want to continue [y/n]? y
Unknown command/target android_old

(note the _old)

I used this tutorial to set up Buildolzer.

I am working on Windows 10 with CPython 3.6.

@inclement
Copy link
Member

@ihavenonickname Post the full log and description of the problem on the kivy-users mailing list

@abulojoshua1
Copy link

I've failed to build an apk using buildozer.. i get an issue saying something like "failed to execute last command...", i searched the Internet and tried all solutions people provided but all in vain. am using ubuntu 16.04. having cython 0.27.3, Buildozer 0.34 and kivy 1.10.0...
any help please!

@AnkitMArtin
Copy link

I am getting this error while running the command

C:\Users\ankit\Desktop\test>buildozer android debug
Traceback (most recent call last):
File "C:\Program Files\Python36\Scripts\buildozer-script.py", line 11, in
load_entry_point('buildozer', 'console_scripts', 'buildozer')()
File "c:\users\ankit\buildozer\buildozer\scripts\client.py", line 13, in main
Buildozer().run_command(sys.argv[1:])
File "c:\users\ankit\buildozer\buildozer_init_.py", line 122, in init
self.config.read(filename)
File "c:\program files\python36\lib\configparser.py", line 696, in read
self._read(fp, filename)
File "c:\program files\python36\lib\configparser.py", line 1077, in _read
raise MissingSectionHeaderError(fpname, lineno, line)
configparser.MissingSectionHeaderError: File contains no section headers.
file: 'buildozer.spec', line: 1
'[app]\n'

@inclement
Copy link
Member

inclement commented Feb 17, 2018

@AnkitMArtin buildozer does not support windows. It probably shouldn't actually crash, although the reason for this seems to be a corrupted buildozer.spec, it isn't clear if buildozer is at fault. However, even if you fix this, you wouldn't be able to build an APK this way.

@Spidy20
Copy link

Spidy20 commented Nov 30, 2020

If you are using windows, it will not work there, try to use Google Colab for it.

@RotonEvan
Copy link

If you are using windows, it will not work there, try to use Google Colab for it.

Can you please elaborate a bit more on how would I build by app on Google Colab?

Thanks in advance ! :)

@Spidy20
Copy link

Spidy20 commented Dec 1, 2020

Hello, please create your kivy app on a local machine, then go to colab upload it, follow the same procedure as mentioned in the documentation of buildozer. Colab uses Linux so you can use bulldozer there, recently I made one calc app using colab.

@SnehaGupta0123
Copy link

I made my app with google colab and the apk is also created but when I open in phone the app opens and closes its just not working for me....
Any suggestions please.

@MariyaSha
Copy link

If anyone is struggling with using Buildozer on Windows, I've filmed a step by step tutorial about it a while back (using WSL):
https://youtu.be/VsTaM057rdc

@SnehaGupta0123 your app is probably crushing because of discrepancies in the buildozer.spec requirements section.

  • Make sure you specify the versions of the libraries you're using, for example:
    requirements = python3, kivy==2.0.0, kivymd==0.104.1
  • If you include images inside your application - you also need to require "pillow" (even if you don't import it inside your Python file) so then:
    requirements = python3, kivy==2.0.0, kivymd==0.104.1, pillow

This solved the crashing issues for me and I hope it helps you too! good luck! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants