'Google Translate not working with Buildozer for android kivy app

Essentially I had to import not only the libraries I use, but also the dependencies inside those libraries. httpcore is a dependency used by Google Translate library.

logcat before app crashes:

module 'httpcore' has no attribute 'SyncHTTPTransport'

At first I thought it was an issue with the version of httpcore, but specifying the version that gets downloaded normally with a pycharm terminal doesn't work either. Essentially code in Google Translate crashes when using httpcore because a specific httpcore function doesn't exist which Google Translate is using...

Why is this happening? I can't even get the libraries I download to work now either.

Edit: Based on Reddit Commenter, seems like I need to add what's called "recipes" which is a template of code added inside the python code.

Seems to be templates you need to add inside the python code: https://python-for-android.readthedocs.io/en/latest/recipes/

YouTuber NeuralNine seems to have a detailed tutorial for this, I've seen other stuff he's done and he's good. I'll give it a go after work: https://www.youtube.com/watch?v=6gNpSuE01qE



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source