I want to start programming for android so I downloaded Eclipse and installed ADT Plugin on it and downloaded the Android SDK Now when I want to create a new android project in "File->New->Android Application Project" it directs me to a page that wants "Application name" & "Project name" etc. so I filled the fields like this:
Application name: Hello
Project name: Hello
Package name: test.example.hello
Minimum required SDK: API8: Android 2.2(Froyo)
Target SDK: API16: Android 4.1(Jelly Bean)
Compile with:
theme: none
But the "Next" button is disabled! in the top of the page it says: " A package name cannot start or end with a dot" and there is a tiny red thing(cross) near the theme field so I cannot create a new project what should I do ?
Check in
Window-> Preferences-> General-> Startup and Shutdown
theAndroid Development Toolkit
option is deselected, check and restart the eclipse.Go to Window>Customize Perspective> Menu Visiblity (there will be NEW option under FILE yu can choose the type of files and projects you want to create right from you FILE>NEW menu.
The problem was that The
SDK Platform
was not installed on my computer, so I openedWindow>Android SDK Manager
and then clicked onSDK Platform
and then clickedInstall 1 package
and then the problem was solved!This worked for me. I went to Help -> "install New Software..." and then I add this URL (make sure it is https. https://dl-ssl.google.com/android/eclipse/
You cannot have a package name that starts with "com.example". Since your package name is test.example that is not the problem.
As the warning says, see if there are any periods at the start or end of your package.
Check the screenshot. Your window should look exactly like this. And make sure that there are no extra spaces or periods in your package name.
This can occur if Eclipse is still loading the Android tools.
Wait until Eclipse is not busy and try again. (You can see what Eclipse is doing on the bottom-right of the Eclipse window if using the default layout)