0

I am new to Kivy and have created a basic app using it as well as KivyMD. I used a microsoft SQL database and used pypyodbc to integrate it.

I used buildozer to create an apk for the app and all downloaded ok. Upon opening, the app just crashes. I have looked at the debug log but am struggling to understand what I am missing. I suspect it has something to do with lacking a requirement within the buildozer spec sheet.

Debug log:

I/FA      ( 1805): App measurement initialized, version: 26017

I/FA      ( 1805): To enable debug logging run: adb shell setprop log.tag.FA VERBOSE

I/FA      ( 1805): To enable faster debug mode event logging run:

I/FA      ( 1805):   adb shell setprop debug.firebase.analytics.app com.google.android.youtube

I/FA-SVC  ( 1255): App measurement initialized, version: 201817

I/FA      ( 2619): App measurement initialized, version: 25018

I/FA      ( 2619): To enable debug logging run: adb shell setprop log.tag.FA VERBOSE

I/FA      ( 2619): To enable faster debug mode event logging run:

I/FA      ( 2619):   adb shell setprop debug.firebase.analytics.app com.google.android.apps.messaging

I/FA      ( 2910): App measurement initialized, version: 25018

I/FA      ( 2910): To enable debug logging run: adb shell setprop log.tag.FA VERBOSE

I/FA      ( 2910): To enable faster debug mode event logging run:

I/FA      ( 2910):   adb shell setprop debug.firebase.analytics.app com.google.android.apps.messaging

W/FA      ( 2910): Failed to retrieve Firebase Instance Id

W/FA      ( 2910): Failed to retrieve Firebase Instance Id

I/FA      ( 2992): App measurement initialized, version: 26016

I/FA      ( 2992): To enable debug logging run: adb shell setprop log.tag.FA VERBOSE

I/FA      ( 2992): To enable faster debug mode event logging run:

I/FA      ( 2992):   adb shell setprop debug.firebase.analytics.app com.google.android.apps.maps

I/FA      ( 1744): App measurement initialized, version: 29009

I/FA      ( 1744): To enable debug logging run: adb shell setprop log.tag.FA VERBOSE

I/FA      ( 1744): To enable faster debug mode event logging run:

I/FA      ( 1744):   adb shell setprop debug.firebase.analytics.app com.google.android.googlequicksearchbox

I/FA      ( 1744): Tag Manager is not found and thus will not be used

I/FA-SVC  ( 1255): Install Referrer Reporter is not available

I/FA      ( 3734): App measurement initialized, version: 26017

I/FA      ( 3734): To enable debug logging run: adb shell setprop log.tag.FA VERBOSE

I/FA      ( 3734): To enable faster debug mode event logging run:

I/FA      ( 3734):   adb shell setprop debug.firebase.analytics.app com.google.android.youtube

I/FA-SVC  ( 1191): App measurement initialized, version: 201817

I/FA-SVC  ( 4675): App measurement initialized, version: 201817

I/FA      ( 5243): App measurement initialized, version: 25018

I/FA      ( 5243): To enable debug logging run: adb shell setprop log.tag.FA VERBOSE

I/FA      ( 5243): To enable faster debug mode event logging run:

I/FA      ( 5243):   adb shell setprop debug.firebase.analytics.app com.google.android.apps.messaging

I/FA-SVC  ( 4675): Install Referrer Reporter is not available

I/FA      ( 5540): App measurement initialized, version: 26017

I/FA      ( 5540): To enable debug logging run: adb shell setprop log.tag.FA VERBOSE

I/FA      ( 5540): To enable faster debug mode event logging run:

I/FA      ( 5540):   adb shell setprop debug.firebase.analytics.app com.google.android.youtube

I/FA-SVC  ( 4675): Install Referrer Reporter is not available

I/FA      ( 4872): App measurement initialized, version: 29009

I/FA      ( 4872): To enable debug logging run: adb shell setprop log.tag.FA VERBOSE

I/FA      ( 4872): To enable faster debug mode event logging run:

I/FA      ( 4872):   adb shell setprop debug.firebase.analytics.app com.google.android.googlequicksearchbox

I/FA      ( 4872): Tag Manager is not found and thus will not be used

I/FA-SVC  ( 4675): Install Referrer Reporter is not available

W/FA-SVC  ( 4675): Storing bundle outside of the max uploading time span. appId, now, timestamp: com.google.android.apps.messaging, 1678110862848, 1620436547162

W/FA-SVC  ( 4675): Storing bundle outside of the max uploading time span. appId, now, timestamp: com.google.android.googlequicksearchbox, 1678110863032, 1670274152689

W/FA-SVC  ( 4675): Storing bundle outside of the max uploading time span. appId, now, timestamp: com.google.android.youtube, 1678110863229, 1620436548523

I/FA-SVC  ( 4464): App measurement initialized, version: 201817

I/FA      ( 6271): App measurement initialized, version: 26017

I/FA      ( 6271): To enable debug logging run: adb shell setprop log.tag.FA VERBOSE

I/FA      ( 6271): To enable faster debug mode event logging run:

I/FA      ( 6271):   adb shell setprop debug.firebase.analytics.app com.google.android.youtube

I/FA      ( 7328): App measurement initialized, version: 26017

I/FA      ( 7328): To enable debug logging run: adb shell setprop log.tag.FA VERBOSE

I/FA      ( 7328): To enable faster debug mode event logging run:

I/FA      ( 7328):   adb shell setprop debug.firebase.analytics.app com.google.android.youtube

Here is my imports from python main.py:

import pypyodbc
from kivymd.app import MDApp
from kivy.lang import Builder
from kivy.uix.screenmanager import ScreenManager, Screen
from kivy.core.window import Window
from kivy.graphics import Color
from kivy.storage.jsonstore import JsonStore
from kivy.properties import NumericProperty
from kivy.uix.boxlayout import BoxLayout
from kivymd.uix.boxlayout import MDBoxLayout
import pypyodbc as odbc
from kivymd.uix.button import MDFillRoundFlatButton
from kivymd.uix.label import MDLabel
from kivy.uix.scrollview import ScrollView
from kivy.uix.image import Image
from kivymd.uix.button import MDIconButton
from kivy.clock import Clock
from kivymd.uix.button import MDRectangleFlatButton
from kivy.utils import get_color_from_hex

Here is my buildozer spec file:

[app]

# (str) Title of your application
title = IOU Digital Ledger

# (str) Package name
package.name = myapp

# (str) Package domain (needed for android/ios packaging)
package.domain = org.test

# (str) Source code where the main.py live
source.dir = .

# (list) Source files to include (let empty to include all the files)
source.include_exts = py,png,jpg,kv,atlas

# (list) List of inclusions using pattern matching
#source.include_patterns = assets/*,images/*.png

# (list) Source files to exclude (let empty to not exclude anything)
#source.exclude_exts = spec

# (list) List of directory to exclude (let empty to not exclude anything)
#source.exclude_dirs = tests, bin, venv

# (list) List of exclusions using pattern matching
# Do not prefix with './'
#source.exclude_patterns = license,images/*/*.jpg

# (str) Application versioning (method 1)
version = 0.1

# (str) Application versioning (method 2)
# version.regex = __version__ = ['"](.*)['"]
# version.filename = %(source.dir)s/main.py

# (list) Application requirements
# comma separated e.g. requirements = sqlite3,kivy
requirements = python3,kivy, kivymd, pypyodbc, pillow

# (str) Custom source folders for requirements
# Sets custom source for any requirements with recipes
# requirements.source.kivy = ../../kivy

(continues further but SO flagging as spam)

Am I missing anything in requirements? I read to include pillow to prevent crashing but this also did not help. Similarly, using different versions of Kivy did not work either.

Eps4
  • 1

0 Answers0