在 Eclipse 中打开 Android 示例

发布于 2024-11-04 00:36:46 字数 691 浏览 10 评论 0原文

我的机器
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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

作死小能手 2024-11-11 00:36:46

您需要执行以下操作:

文件->新-> 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文