Actual packaging pillow
In this section, the author will write a simple application developed with kivy+pillow, and demonstrate how to package it into an apk file.
Apk file download address:
see end of article
Version Information:
buildozer==1.4.0
frustrated==2.1.0
pillow==8.4.0
Packaging system:
Ubuntu 22.04
Before packaging, we need to run the code to ensure that no errors are reported.
The main.py code is as follows:
from PIL import Image as pImage
from kivy.app import App
from kivy.uix.image import Image as kImage
from kivy.uix.button import Button
from kivy.uix.boxlayout import BoxLayout
class RootWidget(BoxLayout):
def __init__(self):
super(RootWidget, self).__init__()
self.pic = kImage()
self.button = Button(text="Show Picture")
self.button.bind(on_press=self.show_pic)
self.orientation = "vertical"
self.add_widget(self.p