I'd like to include an SDK library into the build that does not exist in PIP, or any public place on the Internet. I've read that this can be done manually. I put the SDK library in the root of my Kivy project. The development console finds this import just fine. The problem is with the deployment.
Looking at the buildozer.spec file I came across this:
# (str) Custom source folders for requirements
# Sets custom source for any requirements with recipes
# requirements.source.kivy = ../../kivy
I have the SDK in a folder called sdk in the root of my project, hence I tried this:
requirements.source.sdk = sdk
It compiles without errors, but the application crashes when trying to import it.
How do I manually include an SDK library in to my APK?
Well! you already figured out the answer that's put the SDK folder in your project folder.
I write this answer to help someone in future. :)
Whenever you deploy an application on your device, using logs is always easy and useful.
Even if you want to see the print statements in your application you would always find logs useful.
So, here's how you do it.
you need to use adb server.
Connect your android with your laptop/pc.
Got to developer options and turn on the stay awake and USB debugging options
buildozer android debug deploy run logcat > logcat.txt
this saves the logs (for the entire process) in a file logcat.txt in the same folder. go through it and find your error.Happy coding :)