kivy / buildozer

Generic Python packager for Android and iOS
https://buildozer.readthedocs.io
MIT License
1.67k stars 486 forks source link

[Support] specify our own Android SDK directory to buildozer #1829

Open a-sajjad72 opened 3 weeks ago

a-sajjad72 commented 3 weeks ago

Versions

Description

As we know on the run of very first project after installing buildozer, it downloads the Android SDK in it's directory ~/.buildozer/android/platform/android-sdk. Is there any option available which we can specify the path of our existing Android SDK. This is because I had already setup my Flutter and installed Android SDK. I don't want to duplicate the same things which I already had on my PC.

T-Dynamos commented 3 weeks ago

Make symbolic links?

a-sajjad72 commented 3 weeks ago

Make symbolic links?

can you show me how to do that?

T-Dynamos commented 3 weeks ago
mkdir -p ~/.buildozer/android/platform/
ln -s <flutter ndk 25 path> ~/.buildozer/android/platform/android-ndk-r25b/
ln -s <flutter android sdk path> ~/.buildozer/android/platform/android-sdk/