You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I give up! Yesterday I spent the entire day and literally the whole night trying different configurations in buildozer.spec to find the right one. I searched for information on Google, various AI chats, and forums. I even tried switching Python and a few other versions to older and newer ones. I wasted a good 15 hours of my life in frustration, just to avoid learning Android Studio. But now I know that gadgets like Buildozer/Kivy aren't worth the time because even the simplest Python code struggles to compile properly on Android! A waste of time and nerves!
If you're reading this and thinking about using this compiler, I advise against it! Spend your time learning Android Studio because this compiler scrapes the bottom and isn't worth any attention! https://github.com/pigwa88/buildozer_sucks
btw. one compilation takes me 15 minutes with i7/16GB!
Python main.app
from kivy.app import App
from kivy.uix.boxlayout import BoxLayout
from kivy.uix.button import Button
from kivy.uix.label import Label
class MyWidget(BoxLayout):
def __init__(self, **kwargs):
super(MyWidget, self).__init__(**kwargs)
self.orientation = 'vertical'
self.button = Button(text='click me', size_hint=(1, 0.2),font_size=24)
self.button.bind(on_press=self.on_button_click)
self.label = Label(text='',size_hint=(1, 0.8), font_size=32)
self.add_widget(self.button)
self.add_widget(self.label)
def on_button_click(self, instance):
self.label.text = "its working!"
class MyApp(App):
def build(self):
return MyWidget()
if __name__ == '__main__':
MyApp().run()
It's common today that requirements = python3=3.10.6 will fail. So leave it as it was (just python3).
There are plans on supporting python3==3.13.0 but I haven't really looked it up on python-for-android, which Buildozer is running under the hood.
Spend your time learning Android Studio because this compiler scrapes the bottom and isn't worth any attention!
The progress is complex and you need time to learn this on how the Kivy application is being built for Android.
For instance: In order to run Python on Android, the Android runs the application and has to include the Python version and all the needed packages. So what you see is the Android app written in Java and Python comes on top of it. Google have been stubborn on adding Python support through the Play Store or through system updates so packages like this really needs this process so you can run your Python written app.
I'm closing this as it's more support related. Please visit us on our support platform on Discord.
👋 @pigwa88,
Sorry to hear you are having difficulties with Kivy's Buildozer; Kivy unites a number of different technologies, so building apps can be temperamental.
We try to use GitHub issues only to track work for developers to do to fix bugs and add new features to Buildozer. This issue has been closed, because it doesn't describe a bug or new feature request for Buildozer.
There is a mailing list and a Discord channel to support Kivy users debugging their own systems, which should be able to help. They are linked in the ReadMe.
Of course, if it turns out you have stumbled over a bug in Buildozer, we do want to hear about it here. The support channels should be able to help you craft an appropriate bug report.
Versions
Description
I give up! Yesterday I spent the entire day and literally the whole night trying different configurations in buildozer.spec to find the right one. I searched for information on Google, various AI chats, and forums. I even tried switching Python and a few other versions to older and newer ones. I wasted a good 15 hours of my life in frustration, just to avoid learning Android Studio. But now I know that gadgets like Buildozer/Kivy aren't worth the time because even the simplest Python code struggles to compile properly on Android! A waste of time and nerves!
If you're reading this and thinking about using this compiler, I advise against it! Spend your time learning Android Studio because this compiler scrapes the bottom and isn't worth any attention! https://github.com/pigwa88/buildozer_sucks
btw. one compilation takes me 15 minutes with i7/16GB!
Python main.app
buildozer.spec
Spec file:
Logs
OR buildozer.spec with cfg:
requirements = python3==3.10.12,kivy==2.3.0,hostpython3==3.10.12,pyjnius==1.5.0
osx.python_version = 3.10.12
osx.kivy_version = 2.3.0
The text was updated successfully, but these errors were encountered: