Brand new Android developer here, also new to Eclipse.
I downloaded and installed
- JDK
- Android SDK
- Eclipse for Java
- then downloaded and installed into Eclipse the Android ADT Plugin
All installed successfully — I did this yesterday (7/14/11) so I have the latest of all.
In Eclipse, I select ‘New Project’ and I select ‘Android->Android Project’ for the project type.
I then get to the new project window in Eclipse and it wants 3 things:
1) Project name — DONE. I name my very first Android project “myAndroidOne”
2) I select the ‘Create new project in workspace’ radio button
3) I select ‘Android 2.2’ for the ‘Build target’
4) I accept Eclipse’s suggestion for the ‘Application name’, “myAndroidOne”
I have no idea what Eclipse wants in the ‘Package Name’ field. Although I’m aware of ‘Java packages,’
it confuses me that Eclipse might want me to specify a Java package here — after all, I’m
creating a new project and have zero idea, being brand new to Android, what if any Java package I will
be using.
I tried entering “pkgMyAndroidOne” but the ‘Next’ button does not light up.
I cannot create a brand-new Android project — I have not written a single line of code, I just wanted to create an Eclipse Android project to start teaching myself how to write my 1st Android app.
What is Eclipse wanting here?
The short answer is Android itself requires package names in order to run the app.
Just create a name like “wantTheBest.playground.firstapp” as the package name and you should be fine.
If you were to release the app on the market, the package name would be used in updating the app. It’s essentially permanent at that point.