Reza Shayestehpour
Reza Shayestehpour

Reputation: 1703

No Android SDK environment set for Kivy in Ubuntu 12.04

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:

Screenshot

Upvotes: 5

Views: 2134

Answers (2)

Krozark
Krozark

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

qua-non
qua-non

Reputation: 4172

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.

Upvotes: 4

Related Questions