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()
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