我在 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 应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!
为什么在 Eclipse 的 SDK 中选择 Android API 而不是 Why would you choose Android API over Google APIs in the SDK on Eclipse?(为什么在 Eclipse 的 SDK 中选择 Android API 而不是 Google API?)
Couchbase 存储桶身份验证错误Couchbase Bucket authentication error(Couchbase 存储桶身份验证错误)
admob 6.2.1 空指针异常admob 6.2.1 nullpointer exception(admob 6.2.1 空指针异常)
如何在 IntelliJ IDEA 中设置 SDK?How to setup SDK in IntelliJ IDEA?(如何在 IntelliJ IDEA 中设置 SDK?)
eclipse 无法检测到我的手机进行试运行My phone cannot be detected in eclipse to test run(eclipse 无法检测到我的手机进行试运行)
android SDK 中缺少 platform-toolsaapt.exe 目录platform-toolsaapt.exe directory missing in android SDK(android SDK 中缺少 platform-toolsaapt.exe 目录)