Setup Android Development in Eclipse Indigo 3.7.1 on Fedora 16
Go to http://fedoraproject.org/wiki/HOWTO_Setup_Android_Development. Mostly, I followed that, but I throw in some details, hints and problem solutions below.
When you edit the path variable. Just open a terminal CD to your home folder (if you are not there already), type:
I should mention that when I downloaded the SDK I unzipped it into my home folder and then renamed it "SDK". I like my names short and sweet when I foresee having to type them in a terminal a lot.
Add this to the bottom of the file:
Under "Running Emulator" -
Note: Hit "esc" to back out of the AVD manager. And close the android SDK manager.
Back in the tutorial, when you get to running the emulator via the terminal, the part where you type:
./emulator -noaudio -avd android_dev1
be careful, because I noticed an error in the tutorial right there. When creating the AVD they posted an image. In that image the name of the AVD is "android_dev", but, as you see they then type "android_dev1" not "android_dev". This could cause trouble.
When you get to -
Configure Android in Eclipse
NOW We have a real problem.
"Android" is supposed to be an item added to the menu under "Help/Preferences" when you update/install the Android Dev Tools with the SDK Manager. Unfortunately, (again, possibly because of operator malfunction), this item did NOT appear in any Eclipse menus nor did anything related to Android appear anywhere inside Eclipse. What you are saved from, if you read this in time, is literally days of searching for an answer to this, countless uninstalls/reinstalls, and much hair pulling and teeth grinding. Android MUST be added to the menus. Installing the ADT plugin in Eclipse is the entire point of this whole process, so luckily, Mike helped me find the solution. It was INSANE, but we found it.
In order for the android menu items to show up we need to uninstall then install the Android Development plugins. As mentioned, you cannot do this through "Help/Install New Software" which would be the logical solution. If you try, you will get error messages saying that they are already installed (even though they are not functioning). Even if you even completely uninstall Eclipse, these plugins will still claim to be "already installed." A method I tried from 7 different angles without success.
Lucky for Fedora (because I was about to trash it and go back to Ubuntu), Mike, my brother, had the solution.
It turns out that Eclipse DOES have a way to uninstall these things. The thing is they hid it behind a moving hedge inside the freaking Bat Cave. To get to it you have to go under Help/About Eclipse Platform/Installation Details. Yeah, that's right. "About"!!! The place you go to see what version you are using, copyright warnings, and company website information. NOT where you would think to go to uninstall plugins. BUT IT IS where you go to uninstall plugins. So go to:
Help/About Eclipse Platform/Installation Details
And there they are! Select all 4 android related items and click uninstall.
Restart Eclipse. Go back to
Help/Install New Software
Go to the Android Plugin link you created.
Check box next to Developer Tools
When done restart Eclipse and and voila! On reboot a new dialog box popped right up in the front asking to either install the latest SDK's or point to existing ones. I told it where the existing ones are: home/ultrajones/SDK. And just like that, Android listings have been added to the File, Window, and Window/Preferences menus. We are ready to roll.
I decided to try and get the API Demos running on the HTC Inspire phone that GRQ is using as one of our dev phones. Here is the process:
Plug the phone in via USB cable.
In the menu bar select:
In dialog box select "Create project from existing sample". Click next.
Select Android 2.2. Click next.
Select ApiDemos and click Finish.
You will see it appear in the bar on the left.
Select it. (hilight it in blue) and go to:
I entered a "Name:" as Inspire (name of the phone, because we are creating a configuration to pull up whenever we are running anything on that particular device).
Click browse and select the newly created sample project.
A dialog box pops down. I see 2 selections.
"Choose a running Android device"
"Launch a new Android Virtual Device"
I chose HT14CT204610 because that is the phone I have plugged in. With that hilighted...
Now I've got the ApiDemos (a whole slew of little sample apps) running on my phone! Woo hoo! FINALLY!!!!