在旧版本的Eclipse和 Android SDK 中,当我想开发一个 Android 应用程序时,我曾经打开“New”,然后打开“Android Project”。
现在在新版本中它更改为 Android 应用程序项目,这让我感到困惑。有很多打开的包和文件夹。我只想创建一个 android 项目,而不是 android 应用程序项目。
我是新手,我希望它尽可能简单,如下所示:
不是这个(“新 Android 项目”菜单的较新版本:
The new project wizard in ADT version 20 can indeed be a bit confusing. Suggestions:
In the first screen it is mostly the same other than a change to dropdown lists for the version selection.
If you don't want to see the second screen picking a launcher icon, uncheck "create custom launcher icon" on the first screen.
On the last screen, if you want to make a project that works on older versions without the compatibility libraries (ie, make an old style project) then uncheck "create activity".
If you do File - New - Project - Android you can get at the options for creating from a sample or existing code. If you pick an older target you can pick an older version of the samples.
Ok, found a solution here:
http://droiddudes.com/2012/07/12/unable-to-create-android-project-in-eclipse-with-adt-20/
Delete Android Support Tools (version 9) from ADK.
Run App wizard again -- it will complete that it requires Version 8 -- confirm you wish to install. Version 9 gets (re)installed. Dialog completes.
Next time you run it there are no errors, and if you look in ADT manager it is in there (again.)
Update: Worked for "test" project then failed for my new real project which has SPACE in the name -- changed the PROJECT NAME (not the app name) to remove the space and the wizard completed correctly.