在 Eclipse 中打开 Android 示例
我的机器
Windows 7
问题
我在打开 Android SDK 示例时遇到问题。
我已经成功运行了“Hello Android”。
我正在执行的步骤:
新建项目->从样本创建 -> (一些演示)
每个错误(APIDemo 除外)
无法写入文件:...\Android\android-sdk\platforms\android-4\samples\LunarLander.project。
原因:
无法写入文件:...\Android\android-sdk\platforms\android-4\samples\LunarLander.project。
APIDemo错误
工作区中已存在具有该命名空间的项目
我尝试过的事情
右键单击示例文件夹 ->属性->取消选中“只读”
(由于某种原因,它会随机重新检查只读)
右键单击示例文件夹 ->属性->安全->编辑->用户->完全控制
哭泣
重新安装 SDK
Google、stackoverflow相关问题
感谢您的帮助!
My machine
Windows 7
Problem
I'm having trouble opening samples for the Android SDK.
I have successfully ran a "Hello Android".
Steps I'm doing:
Make new project -> Create from sample -> (some demo)
Every error (except APIDemo)
Could not write file: ...\Android\android-sdk\platforms\android-4\samples\LunarLander.project.
Reason:
Could not write file: ...\Android\android-sdk\platforms\android-4\samples\LunarLander.project.
APIDemo error
A project with that namespace already exists in the workspace
Things I have tried
Right click samples folder -> Properties -> Uncheck "Read Only"
(For some reason, it randomly rechecks Read Only)
Right click samples folder -> Properties -> Security -> Edit -> User -> Full Control
Crying
Reinstalling SDK
Google, stackoverflow relevant questions
Thanks for your help!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要执行以下操作:
文件->新-> Android 项目
然后,选择“从现有源创建项目”,并浏览到 SDK 目录中的示例目录。然后,选择构建目标并单击“完成”。
该项目应作为常规项目出现在 Eclipse 中。
如果执行此操作时出现错误,则意味着该项目已存在于工作区中。
You need to do the following:
File -> New -> Android Project
Then, select "Create project from existing source", and browse to the samples directory in the SDK directory. Afterwards, choose a build target and click "Finish".
The project should appear in Eclipse as a regular project.
If you get an error doing this, that means that the project already exists in the workspace.