I'm packaging my kivy application using buildozer. My app uses Google Cloud Firestore and Cloud Storage. When I try to deploy it on my android phone I get the error ModuleNotFoundError: No module named 'google.cloud'
. I've got the below requirements line in my buildozer.spec file:
requirements = python3,kivy,kivymd,requests,google-auth,google-oauthlib,firebase-admin,google-cloud-firestore,cachetools,google-cloud,firebase-client,google-cloud-storage
After google-auth
I just sort of started adding any requirements I could find from people asking this question previously. From these links:
KivyMD Buildozer Android and firebase-admin
how to correctly implement the google API on a Kivy application compiling with buildozer?
Error message in buildozer:
File "/home/user/buildozer/appname/.buildozer/android/app/main.py", line 26, in <module. python : ModuleNotFoundError: No module named 'google.cloud'
I assume by this error it's something to do with the main.py file? These are my imports in the main.py
file:
from kivymd.toast import toast #loads of kivy and kivymd imports but haven't included them all
from google.cloud import firestore
from plyer import filechooser
import os
import pyrebase
import requests
import json
import datetime
import pytz
import threading
from functools import partial
import postcodes_io_api
import pgeocode
from my_firestore import Firestore