I've written a game for Android using Python and Kivy. I have downloaded android-sdk-linux
and added its path to .bashrc
. I've also cloned the python-for-android
project to create an apk package of my program. But when I write the following command as instructed in the Kivy manual, I get an error:
./distubute.sh -m "kivy"
error:
Check build dependencies for Ubuntu
Check enviromnent
No ANDROIDSDK environment set, abort
Why?
This is a picture of my ./android.sh
in $android-sdk-linux/tools
:
Sincerely read the docs. In particular, pay attention to the environment variables you need to set mentioned at that bottom of the page.
Hope that helps.
I know that the question is a bit old, but:
export ANDROIDSDK="/path/to/android-sdk-linux"
export ANDROIDNDK="/path/to/android-ndk-rY" #change Y here
export ANDROIDNDKVER=rY #same here
export ANDROIDAPI=X #change X here
export PATH=$PATH:$ANDROIDNDK:$ANDROIDSDK/platform-tools:$ANDROIDSDK/tools
You have to change Y with the ndk version, and X with the API id.
You can add this to your ~/.bashrc.
It has solved the problem for me.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With