Setting up Debian for Android Development

Share on Facebook0Share on Google+0Tweet about this on Twitter5Share on LinkedIn0Share on Reddit0Share on Tumblr


After almost 9 months of beating around the bush, I finally started experimenting with developing Android Apps. I’m using Linux Mint Debian (based on Debian Testing), so after some googling, I used this excellent guide over at howtoforge.com:

Setting Up An Android App Build Environment With Eclipse, Android SDK, PhoneGap (Debian Squeeze)

Of course, I used the latest available version of every software mentioned (binary packages, not .deb as they were somewhat outdated in Testing). The only things I changed during the process of setting up was to edit nss.cfg so that I would not get the “nss initialization” error message on my 64-bit system:

sudo gedit /etc/java-6-openjdk/security/nss.cfg

and changed its content into the following (thanks to java.io.FileNotFoundException: /usr/lib/libnss3.so error on Debian Wheezy):

name = NSS
nssLibraryDirectory = /usr/lib/x86_64-linux-gnu
nssDbMode = noDb
attributes = compatibility

I left may main user as owner of /etc/eclipse and I made sure that I used the right java, by:

sudo update-alternatives --config javac

sudo update-alternatives --config java

That’s all!

Enhanced by Zemanta

Share on Facebook0Share on Google+0Tweet about this on Twitter5Share on LinkedIn0Share on Reddit0Share on Tumblr