I installed eclipse and all the sdk/jre etc... I can make Android Apps now and it's working, but often my eclipse crash.
I would like to know if it's possible to:
from the command line?
I use VIM to edit the files
I had the same problem until I found a memory error. If you can't upgrade your memory here's what you can do:
sudo apt-get install git-core gnupg flex bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl libncurses5-dev zlib1g-dev openjdk-6-jdk ant gcc-multilib g++-multilib sudo apt-get install ia32-libs ## if applicable sudo apt-get install ant1.7 ant-optional
Open .bashrc file using an editor. If you use VI then
vi ~/.bashrc and add the following 2 lines in your .bashrc file.
JAVA_HOME=/usr/lib/jvm/jdk1.7.0_04/ export JAVA_HOME
Also, you can add these to compile from anywhere:
export PATH=$PATH:~/development/android-sdk-linux/tools export PATH=$PATH:~/development/android-sdk-linux/platform-tools if [ -d "$JAVA_HOME/bin" ] ; then PATH="$HOME/bin:$PATH" fi
Configure the android simulator:
And you can setup your simulator there
ant clean debug
You might need to run:
android update project --target <your build target> --path <path to LunarLander example>
if you get:
Buildfile: build.xml does not exist! Build failed
Install the app:
adb install ./bin/app-debug.apk