Good day. Faced such a problem, which is associated with compiling code in apk format.

I tried to compile into buildozer two files with codes, one of which contained the py format and the other kv I only compiled a file in the py format and when I run on android , I do not see anything, because. All the gadgets in the kv file. Please tell me how to add a file with the kv extension to the apk file? Here is the code from the file with the extension py :

 from kivy.app import App from kivy.uix.label import Label from kivy.uix.widget import Widget from kivy.uix.button import Button class Widgets(Widget): def __init__(self): super(Widgets, self).__init__() def btn_clk1(self): self.labe.text="ouu" def btn_clk2(self): self.lbl.text="ser" class SimpleKivy(App): def build(self): return Widgets() SimpleKivy().run() 

But the code from the file with the extension kv :

 <Widgets>: lbl: my_label labe: my_labels Button: size: 100,75 pos: 0,0 text: "1" color: 0,1,0,1 font_size: 40 on_press: root.btn_clk1() Button: id: 1 size: 170,75 pos: 100,0 text: "2" color: 1,0,0,1 font_size: 40 on_press: root.btn_clk2() TextInput: id: my_label size: 300,300 pos: 300,0 text: "" color: 1,0,0,1 font_size: 40 TextInput: id: my_labels size: 300,300 pos: 300,300 text: "" color: 1,0,0,1 font_size: 40 

    1 answer 1

    Elementary! In the buildozer.spec file, specify in the source.include_exts variable file extensions that should be present in the final apk build!

    Tip: Look here - https://habrahabr.ru/users/HeaTTheatR/topics/