How do i open a sample Android SDK app in Eclipse (如何在 Eclipse 中打开示例 Android SDK 应用程序)
问题描述
我在 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
这篇关于如何在 Eclipse 中打开示例 Android SDK 应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:如何在 Eclipse 中打开示例 Android SDK 应用程序


基础教程推荐
- 如何在 JFrame 中覆盖 windowsClosing 事件 2022-01-01
- 不推荐使用 Api 注释的描述 2022-01-01
- 验证是否调用了所有 getter 方法 2022-01-01
- 多个组件的复杂布局 2022-01-01
- 在 Java 中创建日期的正确方法是什么? 2022-01-01
- 如何在 Spring @Value 注解中正确指定默认值? 2022-01-01
- Java 实例变量在两个语句中声明和初始化 2022-01-01
- 从 python 访问 JVM 2022-01-01
- 大摇大摆的枚举 2022-01-01
- Java Swing计时器未清除 2022-01-01