文件->;新->;安卓项目->;从现有代码AndroidManifest.xml创建项目(系统找不到指定的文件)

文件->;新->;安卓项目->;从现有代码AndroidManifest.xml创建项目(系统找不到指定的文件),android,Android,我试图看看Apress和Wiley书中的Android示例。 查看两家公司的代码时都会出错。 也就是说,一个按下开始的安卓 将第7章摘录到Z:\new\Chapter7 仅供参考Android SDK位置Z:\eclipse\Android\Android SDK 文件->新建->Android项目->从现有代码创建项目 已选择Z:\new\Chapter7 构建目标Android 2.2 我能够输入HelloWorld和应用程序,以便在硬件和模拟器上运行当前的Eclipse设置,但在尝试查看其

我试图看看Apress和Wiley书中的Android示例。 查看两家公司的代码时都会出错。 也就是说,一个按下开始的安卓

将第7章摘录到
Z:\new\Chapter7

仅供参考Android SDK位置
Z:\eclipse\Android\Android SDK

文件->新建->Android项目->从现有代码创建项目 已选择
Z:\new\Chapter7
构建目标Android 2.2

我能够输入HelloWorld和应用程序,以便在硬件和模拟器上运行当前的Eclipse设置,但在尝试查看其他sorce代码时,我会出错

当从两家公司的书籍中打开源代码时,我会遇到类似的错误

[2011-07-27 02:26:41 - com.android.ide.eclipse.adt.internal.project.AndroidManifestHelper] Unable to read Z:\eclipse\Android\android-sdk\samples\android-8\AndroidManifest.xml: java.io.FileNotFoundException: Z:\eclipse\Android\android-sdk\samples\android-8\AndroidManifest.xml (The system cannot find the file specified)
[2011-07-27 02:26:41 - com.android.ide.eclipse.adt.internal.project.AndroidManifestHelper] Unable to read Z:\eclipse\Android\android-sdk\samples\android-8\AndroidManifest.xml: java.io.FileNotFoundException: Z:\eclipse\Android\android-sdk\samples\android-8\AndroidManifest.xml (The system cannot find the file specified)
[2011-07-27 02:26:45 - com.android.ide.eclipse.adt.internal.project.AndroidManifestHelper] Unable to read Z:\new\AndroidManifest.xml: java.io.FileNotFoundException: Z:\new\AndroidManifest.xml (The system cannot find the file specified)
[2011-07-27 02:30:41 - com.android.ide.eclipse.adt.internal.project.AndroidManifestHelper] Unable to read Z:\new\AndroidManifest.xml: java.io.FileNotFoundException: Z:\new\AndroidManifest.xml (The system cannot find the file specified)

Eclipse正在尝试从文件夹
Z:\new\
Z:\Eclipse\Android\Android\samples\Android-8
创建项目,我可以向您保证这是错误的。您是否正在制作另一个项目,其中您是从这两条路径创建的?我知道,
Z:\eclipse\Android\Android\samples\Android-8
中有多个项目,您需要指定确切的项目

例如,在
android-8
中,我看到有
ApiDemos
BackupRestore
,您需要选择它们,以便Eclipse找到AndroidManifest.xml文件

至于另一个链接(
Z:\new\
),请确保您选择了
Z:\new\Chapter7
,看起来您没有这样做。它正在
\new\
文件夹中查找
AndroidManifest.xml
,而它应该在
\new\Chapter7
中查找