首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >文件->新建->Android项目->从现有代码创建项目AndroidManifest.xml (系统找不到指定的文件)

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

Stack Overflow用户
提问于 2011-07-27 17:54:36
回答 1查看 1.7K关注 0票数 0

我正在尝试查看Apress和Wiley的书中的Android示例。查看两家公司的代码时都会出现错误。即。Apress开始安卓http://www.apress.com/downloadable/download/sample/sample_id/584/

已将Chapter7提取到Z:\new\Chapter7

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

文件->新建-> Android项目->基于选定的现有代码创建项目Z:\new\Chapter7构建目标Android 2.2

我能够让输入的HelloWorld和应用程序与当前的Eclipse设置一起在硬件和模拟器上运行,但是当尝试查看其他sorce代码时,我得到了错误。

从任何一本公司的书中打开源代码时,我都会得到类似的错误

代码语言:javascript
复制
[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)
EN

回答 1

Stack Overflow用户

发布于 2011-07-28 04:03:12

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

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

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

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/6842448

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档