Reputation: 1703
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
:
Upvotes: 5
Views: 2134
Reputation: 860
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.
Upvotes: 2