Setting up to develop for the Amazon AppStore


So recently I’ve been looking at putting Best Books up on the Amazon App store too given it’s Android also and should be a good experience. I’ve had to set up my development environment again but it’s a good exercise to do it from scratch every now and then anyways.

First up, off to grab my Android install bundle. Pretty straightforward and plenty of details on the android developer site. Download, unzip and stick in a relevant spot. Fire up Eclipse and if you’re like me you’ll get an error saying that Eclipse can’t find the Java runtime or SDK. Whoops, off to grab that from Oracle.

It should automatically add Java to your path (for me on Windows it did anyway), if not it’s pretty straightforward to add to your environmental variables. Now Eclipse should boot up happily and if you already had an Android project ready to go like me you could see a similar error, “Unable to resolve target ‘android-8’”. Off to the SDK manager that came with the bundle and install the missing Android API (8 = 2.2 which is what I was developing for initially). You can grab any other versions you wish to target now too.

So that fixed the error after restarting Eclipse but when I tried to run it I got an error because I hadn’t set up a AVD yet. Android Virtual Device. Open the AVD Manager and set one up, it’s pretty easy and self-explanatory.

Now for the Kindle Fire Device and Emulator dependencies. Open up the Android SDK Manager again, click Tools > Manage Add-on sites and then the User Defined Sites Tab. Add the amazon site URL:

Wait for the manager to refresh and then select the tools detailed here in step 6. If you can’t be bothered going there it’s;
Tools -> Android SDK Tools, Android SDK Platform-tools.
APIs -> The various Kindle system images for the emulator are in the 4.2.2 (17), 4.0.3 (15) and 2.3.3 (10) APIs.
Extras -> Kindle Fire Device Definitions, Kindle Fire USB Driver, Android Support Library, Intel x86 Emulator Accelerator (HAXM) and Amazon AVD Launcher.

Install all those packages (might take a while to download) then close the manager and restart Eclipse. On the page linked previously there are steps to set up the x86 system images for faster kindle fire emulation so follow that guide too if needed.