我正在尝试查看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代码时,我得到了错误。
从任何一本公司的书中打开源代码时,我都会得到类似的错误
[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)发布于 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中,我看到有ApiDemos和BackupRestore,您需要选择它们以便Eclipse找到AndroidManifest.xml文件。
至于另一个链接(Z:\new\),请确保您选择了Z:\new\Chapter7,看起来您没有这样做。它在\new\文件夹中查找AndroidManifest.xml,而实际上它应该在\new\Chapter7中查找。
https://stackoverflow.com/questions/6842448
复制相似问题