問題描述
我在 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模板網!