进口旧的Andr​​oid项目到Eclipse时缺少的Andr​​oidManifest.xml [英] Missing AndroidManifest.xml when importing an old Android project into Eclipse

查看:151
本文介绍了进口旧的Andr​​oid项目到Eclipse时缺少的Andr​​oidManifest.xml的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对Eclipse的(GNU / Linux)的,我上次触及半年前开发的Andr​​oid项目。我想这个项目导入Eclipse 3.6的Windows(与ADT安装)安装使用文件 - >导入项目在Eclipse中。当项目是进口的,我看到下面的错误两次在控制台上:

I have an Android project developed on Eclipse (GNU/Linux) that I last touched half a year ago. I am trying to import the project into Eclipse 3.6 on Windows (with ADT installed) installed using File -> Import Project in Eclipse. When the project is imported, I see the following error twice on the console:

[2010-12-10 2点17分十二秒 -   com.android.ide.eclipse.adt.internal.project.AndroidManifestHelper]   无法读取C:\ PROGRAM   文件\机器人\ Android的SDK-WINDOWS \的Andr​​oidManifest.xml:   java.io.FileNotFoundException:   C:\ PROGRAM   文件\机器人\ Android的SDK-WINDOWS \ AndroidManifest.xml中   (系统无法找到该文件   指定)

[2010-12-10 02:17:12 - com.android.ide.eclipse.adt.internal.project.AndroidManifestHelper] Unable to read C:\Program Files\Android\android-sdk-windows\AndroidManifest.xml: java.io.FileNotFoundException: C:\Program Files\Android\android-sdk-windows\AndroidManifest.xml (The system cannot find the file specified)

为什么Eclipse中寻找的Andr​​oidManifest.xml Android SDK的路径?该文件实际上似乎是在项目的目录。如何解决这个问题,并获得该项目编译?

Why is Eclipse looking for AndroidManifest.xml on the Android SDK path? The file actually seems to be in the project's directory. How do I fix this problem and get the project to compile?

推荐答案

要导入的Andr​​oid项目到Eclipse的方式是错误的。这样做的正确的方法是文件 - >新建Android项目。在目录选项卡中的新的Andr​​oid项目,选择创建从现有的源项目,然后选择构建目标。这应该解决您的问题。

The way you are importing the Android project into Eclipse is wrong. The Correct way of doing is File -> New Android Project. In the Contents Tab in "New Android Project", select "Create project from existing source" and choose the Build Target. That should fix your problem.

这篇关于进口旧的Andr​​oid项目到Eclipse时缺少的Andr​​oidManifest.xml的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆