I try for many days to build a simple android package using kivy and python for android. Unfortunately, I’ve spent many hours trying to solve all the issues but I still cannot do it. I hope you guys help me out because you are my last hope before throwing my laptop off the window…
I have succeeded to build the distribution directory using only the kivy module.So the output folder /dist/default has all the necessary files (I hope) in order to build my apk. The command that I use to build the apk, according to the example in the docs is the following:
sudo ./build.py --dir ~/mount_point/kivy --name "Myapp" --package org.mytest.myapp --version 1.0 installd
What I get is:
An error occured while calling ~/android-sdk-linux/tools/android update
Your PATH must include android tools.
I have already inserted in the bashrc the appropriate exports. So if i run the following:
~/android-sdk-linux/tools/android update
I get:
Error: Missing object name for verb ‘update’.
[Continues with usage details…]
I don’t know what to do and I cannot find anything in the Internet. If you need more details just ask me to provide. My OS is UBUNTU 11.10. Thanks!
Basically, as a linux noob I didn’t know that I had to export the required variables to the root’s .bashrc file, as I didn’t know that there are different bash profiles for each user, and then run the command as a root. As I did that the build script worked as it should.