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

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

问题描述

这或许从我的previous问题2,或延续也许这是一个完全无关的问题。

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

previous问题是结果
在记事本教程问题:结果
<一href=\"http://stackoverflow.com/questions/5025152/cant-read-androidmanifest-xml-while-attempting-android-notepad-tutorial\">Can't读... AndroidManifest.xml中 - 尝试Android电子记事本教程 - 练习1

Previous questions were
Questions on Notepad Tutorial:
Can't read ... AndroidManifest.xml - while attempting Android Notepad Tutorial - Exercise 1

本教程请你选择从现有的开源项目。我的第一次原来的问题是在哪里模板(原件源)复制,并从我收到的答案,它看起来像我应该将C下的目录结构/来源:/开发/ Eclipse中/目录中,所以它看起来像这个结果
_ C:/开发/ 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:\\的Andr​​iod \\的Andr​​iod-SDK-WINDOWS \\ AndroidManifest.xml中:java.io.FileNotFoundException:C:\\的Andr​​iod \\的Andr​​iod-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个问题。其中一个问题可能是我自己做的,想扔本教程数十次运行,并试图一遍又一遍回了我的变化。

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:结果
我再次开始创建一个使用创建项目从现有的源代码(下着 - 读androidmanifest-XML错误仍然出现)的Notepadv1项目,但建议我只是忽略它。我接下来的选择的Andr​​oid 1.5 / 1.5平台作为构建目标,但如果你进入闽SDK版本领域是灰色的,和..本教程说要放多少有不能输入数字3出现,但它似乎在同一时间,我选择从现有源创建项目,并获得着 - 读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:\\开发\\ Eclipse的\\ Notepadv1重叠另一个项目的位置:Notepadv1
  

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

这最初没有发生。有没有在Package Explorer或导航器窗口中的Notepadv1的记载,所以我找不到任何方法来删除它,我已经运行洁净工程,日食退出并重新启动机器过一段时间......在几种不同的方式。结果
有什么建议么?乔

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

P.S。我还没有接受任何的答案,我的最后一个问题,因为陪审团还在外面。我还没有确定他们是正确的。我会会确保我回去接受一个答案,一旦我找出正确的答案是什么 - 乔

推荐答案

问题1是因为在AndroidManifest.xml中丢失了。

Problem 1 is because the androidmanifest.xml is missing.

问题2 Notepadv1已经存在于您的工作空间。

Problem 2 Notepadv1 already exists in your workspace.

如果我是你,我会您的工作空间更改为您的文档/我的文档或根据您的操作系统equivilant文件夹中。你可以做到这一点在文件 - >切换Workspace->其它。然后删除你所拥有的在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的一部分?如果是我会用文件 - >导入到复制到您的工作空间,而不是乱用的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天全站免登陆