I downloaded and installed the Android SDK today, along with the JDK and Eclipse tools, and the Android Development Tool (ADT). I was all set to get my self up and running with a Hello World application but have had nothing but issues all day long. It’s really got me frustrated as I’ve never developed with either eclipse or Java, and so I’m trying to find the issues to a SDK using software I’ve never used before with a language and compiler that’s completely new to me.
So lets start at the beginning.
I went over to the Android developer site today and checked it out. The first thing that I’m greeted with is that Android 2.1 is now available and that I can download it. Sweet.
I moved over to the downloads page and downloaded the latest version of the SDK, the December 2009 release. According to Google’s Android site disclaimer at the top of the page,
- The SDK downloadable package includes only the latest version of the Android SDK Tools.
- Once you’ve installed the SDK, you now use the Android SDK and AVD Manager to download all of the SDK components that you need, such as Android platforms, SDK add-ons, tools, and documentation.
- The new approach is modular — you can install only the components you need and update any or all components without affecting other parts of your development environment.
- In short, once you’ve installed the new SDK, you will not need to download an SDK package again. Instead, you will use the Android SDK and AVD Manager to keep your development environment up-to-date.
Ok, so I only need to download the SDK displayed to me, install it and the AVD manager will handle downloading the SDK components that I actually need/want to use. So I did that, and got the compressed .zip file unpacked and ready to be used. Included in it was something new that I hadn’t seen the last time I downloaded the SDK (which was back prior to the first Android handsets being sold), and that was the SDK Setup.exe file. I read the readme.txt file that was included with it and it informed me that the Android SDK no longer comes shipped with the platforms needed to compile your code against, but rather includes the SDK Setup.exe tool for downloading the platforms for you. Ok, that seems convenient. So I have my SDK unpacked and ready to be used, I didn’t touch the SDK Setup.exe, I assumed I’d be using it at a later point in time. Once the development environment is setup correctly.
Next I downloaded Eclipse Galileo with Java EE and unpacked it into my development directory. Once this step was completed I moved onto the next part of Google’s documentation explaining how to set my environment up. I launched Eclipse and installed the Google ADT as per their instructions. Restarted Eclipse and found that I now had a Android Project that I could build under the New->Project dialog. I then went into the Window->Preferences and set the SDK directory as per the documentations instructions.
I created a new project, following the directions outlined in their Hello World example and wouldn’t you know it, there wasn’t any supported Platforms installed. No problem right? I know how to solve this, start up the SDK Setup.exe and download a new platform. Alright, so I did that, I downloaded Version 2.0 of the OS and when it was done I had three items in total installed. Android Platform 2.0, Documentation for Android and the Android SDK Tools. Next I returned to my Eclipse, and created the new project and the platform was now available. So I setup the project and clicked finish. I now have a Android application sitting in my Eclipse waiting to be compiled.
This is where my issue started, and has yet to be resolved. I wanted to test the freshly created project, so I went to Run->Run Configurations and created a new Android Configuration. I called it the name of my project, and selected my project in the Project field. Next I clicked the Target tab, and noticed that there wasn’t any AVD’s available, so I selected the Manager… button and created myself a new AVD using Android 2.0 and no additional hardware options where applied to it. I set it’s SD memory size to 1028MB (1gb) and created it. Returning to Eclipse I found my AVD under the Target list now. I selected it, clicked ‘Apply’ and then ‘Start’ to start my AVD.
Now, the Android OS is booted all the way up, and I’m greeted with a couple error messages. I noticed that they where related to messaging and assumed that this was due to this being an emulator and not on a wireless providers network. I selected Force Quit and then returned to Eclipse and clicked Run on the Configuration window.
It’s at this point that I receive an error within Eclipse stating the following:
Your Project contains error(s), please fix them before running your application
How is this possible? The application is freshly created, the AVD was created without error, and the SDK path has been supplied to the Eclipse SDK. I’ve re-installed everything over and over, and always arrive at the same issue. When I open the Error Log within Eclipse, I have the following two errors.
The installable unit
org.eclipse.ui.win32.translated_hose_properties
is missing the filename property."
The installable unit
org.eclipse.persistence.jpa.equinox.weaving.translated_host_properties
is missing the filename property.
I’m not sure where to go from here, I’m seeking someone’s assistance in the matter, as I don’t even know what those properties are for. I’m not an Eclipse or Java person so this has me confused.