I had a chance to toy around Android Development Tools (ADT) over the weekend and this is my personal take on it: aside from setting up Eclipse IDE, everything works painfully. Although, I have to admit, setting up Eclipse IDE for me wasn’t as painful as Jamie Murai’s experience with RIM Developer Relations, not even a slight chance.
This is what you need to do:
Download Android SDK
Download Android SDK here. The download already include Eclipse IDE with ADT plugin.
Run Eclipse (Mac and Windows)
Ideally, you just click on “eclipse.exe” file and you are ready to develop app in Android. This is true when I ran Eclipse on Mac OSX environment. For Windows, it’s not the case. In Windows environment, I ran into couple issues
“Java Runtime Environment / Java Development Kit must be available”
To solve this:
- Right click on My Computer, Properties
- On Advanced tab, click on Environment Variables
- Under System Variables, add the following variable:
value: C:\Program Files (x86)\Java\jre7
Obviously, the value depend on where you have your JRE installed and what version (32 or 64 bit), but normally this is where it is.
- Under System Variables, modify the Path variable:
“Failed to load the JNI shared library.”
This caused by different system type between Java Runtime and Eclipse. In my case, I have 32-bit Java Runtime but 64-bit Eclipse. Both Java Runtime and Eclipse must match, either 32-bit or 64-bit.
Android Virtual Device (AVD)
Your journey is not yet ended after you get Eclipse to run. Before start coding your app, you will need to create what is called Android Virtual Device (AVD). Essentially, it’s a sandbox, closed, isolated environment of an Android device. So, think of it like a Android cell phone but running on your OS.
Android Developers site provide details information on this subject: Managing AVDs with AVD Manager.
I would strongly suggest you to run your app on actual device as oppose to emulator in AVD just because running emulator is extremely slower in my case.
Well, create your first app and hello world fun. Head to tutorial on Android Developers website to create your first app.