如何在 Eclipse 中打开示例 Android SDK 应用程序

2022-01-08 00:00:00 sdk android eclipse sample

我在 Eclipse 中为 Android 2.1 创建了一个基本程序.然后我想看一些示例,并导入 SDK 目录中的示例项目.我尝试打开一个新项目并从现有源创建项目",我浏览并可以选择一个项目,所有详细信息都出现了,我可以单击完成,但我收到一条错误消息,提示无法写入文件",并且如果我点击详细信息,它会显示访问被拒绝"我尝试将项目文件夹复制到我自己的工作区,但它仍然做同样的事情.

I have created a basic program in Eclipse for Android 2.1. then I wanted to look at some of the samples, and import sample projects which are in the SDK directory. I have tried opening a new project and 'create project from existing source', I browse and can select a project, all the details come up and I can click finish, but I receive an error message saying 'could not write file', and if I click on details, it says "access is denied" I have tried copying a project folder into my own workspace but it still does the same thing.

推荐答案

在包资源管理器窗口中右击.

Right click in the package explorer window.

选择新建 -> 其他

在Android文件夹下选择Android Sample Project

Under the Android folder select Android Sample Project

选择构建目标,然后选择示例项目

Choose the build target and then the sample project

相关文章