eclipse, new android application project, “next bu

2020-03-01 06:17发布

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 ?

6条回答
家丑人穷心不美
2楼-- · 2020-03-01 06:20

Check in Window-> Preferences-> General-> Startup and Shutdown the Android Development Toolkit option is deselected, check and restart the eclipse.

查看更多
疯言疯语
3楼-- · 2020-03-01 06:29

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.

查看更多
爷、活的狠高调
4楼-- · 2020-03-01 06:32

The problem was that The SDK Platform was not installed on my computer, so I opened Window>Android SDK Manager and then clicked on SDK Platform and then clicked Install 1 package and then the problem was solved!

查看更多
We Are One
5楼-- · 2020-03-01 06:36

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/

查看更多
我欲成王,谁敢阻挡
6楼-- · 2020-03-01 06:37

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.

enter image description here

查看更多
兄弟一词,经得起流年.
7楼-- · 2020-03-01 06:40

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)

查看更多
登录 后发表回答