title: kivy application crashing on android with Buildozer
body: <p>I made a simple qr code scanner with kivy. Whenever I compile the app with buildozer it auto crashes on android.
  <strong>Here is my main.py:</strong></p>
  <pre class="lang-py prettyprint-override"><code>import cv2
  from kivy.app import App
  from kivy.clock import Clock
  from kivy.graphics.texture import Texture
  from kivy.uix.boxlayout import BoxLayout
  from pyzbar.pyzbar import decode
  
  
  class MainApp(BoxLayout):
  
      def __init__(self, **kwargs):
          super().__init__(**kwargs)
          self.capture = cv2.VideoCapture(0) #I also tried cv2.VideoCapture(0,cv2.CAP_ANDROID)
          Clock.schedule_interval(self.update, 1.0 / 33.0)
  
      def update(self, dt):
          ret, frame = self.capture.read()
  
          for code in decode(frame):
              self.l1.text = f&quot;{str(code.type)} {str(code.data.decode('utf-8'))}&quot;
              bbox = code.rect
              cv2.rectangle(frame, bbox, (255, 0, 255), 2)
  
          buf1 = cv2.flip(frame, 0)
          buf = buf1.tobytes()
          texture1 = Texture.create(size=(frame.shape[1], frame.shape[0]), colorfmt='bgr')
          texture1.blit_buffer(buf, colorfmt='bgr', bufferfmt='ubyte')
          self.img1.texture = texture1
  
  
  class QrApp(App):
      pass
  
  
  if __name__ == '__main__':
      QrApp().run()
  </code></pre>
  <p>and here is the <strong>.kv</strong> file:</p>
  <pre><code>MainApp:
  
  &lt;MainApp&gt;:
  
      orientation: &quot;vertical&quot;
  
      img1: img1
      l1: l1
  
      Label:
          id: l1
          size_hint: 1, .1
          font_size: 30
  
      Image:
          id: img1
  </code></pre>
  <p>I tried compiling the app many times and it always auto crashes when I run it on my phone.</p>
  <p>Here is my <strong>buildozer.spec:</strong></p>
  <pre><code># (list) Application requirements
  # comma separated e.g. requirements = sqlite3,kivy
  requirements = python3,kivy,opencv-python,pyzbar
  
  # (list) Permissions
  android.permissions = INTERNET, CAMERA
  </code></pre>