我如何在Eclipse中打开一个样品的Andr​​oid SDK的应用程序样品、应用程序、如何在、Eclipse

2023-09-12 08:45:08 作者:埋葬了整个爱情

我在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的示例项目

Under the Android folder select Android Sample Project

选择构建目标,然后将样本项目

Choose the build target and then the sample project