尝试Android记事本教程 - 练习1 - 更多的问题 [英] Attempting Android Notepad Tutorial - Exercise 1 - More problems

查看:132
本文介绍了尝试Android记事本教程 - 练习1 - 更多的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这可能是我之前提到的问题的延续,也许这是一个完全没有连接的问题。

This maybe a continuation from 2 of my previous question, or maybe it's a completely unconnected problem.

以前的问题是

记事本教程中的问题:

无法阅读... AndroidManifest.xml - 尝试Android记事本教程 - 练习1

本教程要求您选择创建项目从现有的来源。我的第一个原始问题是将模板(原始来源)复制到我收到的答案中,看起来我应该在C:/ Development / Eclipse /目录下复制目录结构/源代码,所以它看起来像这个

_ C:/ Development / Eclipse / Notepadv1 / ... _

The tutorial asked you to select "Create project from existing source". My 1st original question was where to copy the template (original source) to and from the answers I received, It looks like I should copy the directory-structure/source under the C:/Development/Eclipse/ directory, so it would look like this
_ C:/Development/Eclipse/Notepadv1/... _

我这样做,然后尝试继续教程,但是当我到达选择从现有来源创建项目的部分时,我收到一对错误

I did that, and then tried to continue the tutorial, but when I got to the part that says to select "Create project from existing source", I received a pair of errors


C:\ Andriod\Andriod-SDK-Windows\AndroidManifest.xml:java.io.FileNotFoundException:C:\Andriod\Andriod-SDK-

(相同的错误在控制台& WorkSpaceLog中打印两次

C:\Andriod\Andriod-SDK-Windows\AndroidManifest.xml: java.io.FileNotFoundException: C:\Andriod\Andriod-SDK-
(Same error prints twice in the Console & WorkSpaceLog

所以我发布了关于FileNotFoundException的第二个问题:,并收到一个忽略该消息的答案,一直发生...所以我发现再次向前走,现在我有2个问题,其中一个问题可能是m你自己做,试图运行这个教程几十次,并试图一遍又一遍地退出我的改变。

So I posted a second question about the FileNotFoundException:, and received an answer saying to ignore the message, happens all the time... so I deiced to plow forward again. Now I have 2 problem. One of the problems may well be of my own doing, trying to run threw this tutorial dozens of times, and attempting to back out my changes over and over again.

问题#1:

我再次开始使用从现有来源创建项目创建Notepadv1项目(仍然会出现cant-read-androidmanifest-xml错误),但是根据建议,我只是忽略它。我接下来选择Android 1.5 / Platform 1.5作为构建目标,但输入Min SDK版本的字段将显示为灰色,而您不能在其中输入数字3。教程中将数字放在那里,但是它似乎变灰了,同时我选择从现有的源创建项目,并获得cant-read-androidmanifest-xml错误。

Problem # 1:
I once again start to create the Notepadv1 project using "Create Project from Existing Source" (The cant-read-androidmanifest-xml error still appears), but as suggested I just ignore it. I next select "Android 1.5/Platform 1.5 as the Build Target, BUT the field where you enter the Min SDK Version is grayed out, and you can't enter the number 3 there.. The tutorial says to put the number there, but it seems to become grayed out at the same time I select "Create Project from Existing Source" and get the "cant-read-androidmanifest-xml" error.

问题#2:

如果我点击[下一步]两次或[完成]一次,我会收到一个弹出框,其中显示无效的项目描述 - - 原因:无效的项目描述

Problem # 2:
If I click on [Next] twice, or [Finish] once, I get a pop up box with the message "Invalid project description" - - "Reason: Invalid project description"


[详细>>]项目描述无效。
C:\Development\Eclipse\Notepadv1与另一个项目的位置重叠:'Notepadv1'

[Details>>] "Invalid project description. C:\Development\Eclipse\Notepadv1 overlaps the location of another project: 'Notepadv1' ".



最初没有发生,在Package Explorer或Navigator窗口中没有提到Notepadv1,所以我找不到任何方法来删除它,我已经运行了Clean Projects,退出eclipse并重新启动机器几次...以几种不同的方式。

任何建议?Joe

This did not originally happen. There is no mention of the "Notepadv1" in the Package Explorer or Navigator windows, so I can't find any way to remove it, and I have run Clean Projects, exited eclipse and rebooted the machine a few time... in a few different ways.
Any suggestions? Joe

PS我还没有接受任何对于我最后一个问题的回答,因为陪审团还没出来,我还不确定他们是否正确,我会确定我回去接受一个答案,一旦我找出正确的答案 - Joe

推荐答案

问题1是因为androidmanifest.xml丢失。

Problem 1 is because the androidmanifest.xml is missing.

问题2您的工作区中已经存在Notepadv1。

Problem 2 Notepadv1 already exists in your workspace.

如果我是你,我将把工作空间改为Documents / My Docum ents或equivilant文件夹,具体取决于您的操作系统。您可以在File-> Switch Workspace-> Other下进行。然后删除你在Eclipse目录下的内容。如果您更新Eclipse或具有多个版本的Eclipse,则可能会发生混乱。

If I were you I would change your workspace to your Documents/My Documents or equivilant folder depending on your OS. You can do that under File->Switch Workspace->Other. Then delete what you have under the Eclipse directory. It could get messy if you update Eclipse or have multiple versions of Eclipse.

此记事本项目在哪里?是SDK的一部分?如果是,我将使用File-> Import复制到您的工作区,而不是使用SDK副本。这可能是为什么清单丢失了。

Where is this Notepad project? Is is part of the SDK? If it is I would use File->Import to copy over to your workspace rather than mess with the SDK copy. That is probably why the manifest is missing.

如果你想要更多的帮助让我知道。

If you would like more help let me know.

PS 。如果缺少记事本清单,您可能需要重新安装SDK。

PS. You will probably want to reinstall the SDK if the Notepad manifest is missing.

编辑:

@Joe。我不能说为什么其他的教程工作,而其他教程没有明确的,但使用SDK作为一个工作区绝对会最终成为程序化的学习。我的SDK与我的工作区分开。因此,在简要总结中,我会将SDK,Eclipse源和项目工作区保留在完全不同的位置。如果你想要更多的帮助,我们可以从那里开始。

@Joe. I couldn't say why other tutorials worked and others didn't for definite but using the SDK as a workspace is definitely going to end up being programmatic when you are learning. My SDK is separate from my workspace. So, in a brief summary, I would keep the SDK, the Eclipse source and your project workspace in entirely different locations. And we can start from there if you want more help.

这篇关于尝试Android记事本教程 - 练习1 - 更多的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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