Android錯誤 transfer error: Read-only file system

來源:互聯網
上載者:User

然後Widget無法安裝和執行!在參考了官方論壇上的相同問題的一個文章後,也沒有實質的解決辦法(主要是樓主不厚道,解決了也不說明如何解決)。


最終還是自己摸索解決了,因為我用的是win7,預設啟動SDK中的Eclipse不是管理員權限,導致如上錯誤。


解決的辦法是:

1、開啟AVD所在的目錄(預設是C:Users你的名稱.android),將.android目錄及其子目錄的唯讀屬性去掉;

2、在SDK的Eclipse.exe上右鍵選擇“以管理員身份運行”,然後啟動SDK再運行widget;

需要註明的是這個是win7下的解決辦法,我是直接用的WAC SDK進行安裝測試的。

其它區別總結

1. 出現“Project has no target set. Edit the project properties to set one.”的錯誤
Eclipse匯入步驟:
 1. File.../Import.../General/Existing Projects into Workspace
 2. 點Browse按鈕,選擇要匯入的項目所在目錄,點Finish
 3. 如果出現“Project has no target set. Edit the project properties to set one.”的錯誤,則需要在該項目的屬性裡選中Project Build Target的Android版本
 4. 檔案夾中會自動追加一個gen的小目錄,裡面是自動產生的R.java檔案,如果匯入的檔案中已有R.java,則會報錯,此時只要將原來的R.java檔案刪掉即可。

如果有提示關於AndroidManifest.xml的錯誤,請選中此項目,並右鍵選擇Android Tools->Fix Project,將會自動幫你修複錯
誤。

 
2. Could not find *.apk

1) 選擇工程的Properties->Java Build Path->Libraries,去掉預設的Android包;

2) 點擊左側的Android標籤,在右邊的Project Build Target中選擇Android 2.0;

3) 按右鍵工程,選擇Android Tools->Fix Project Properties.

有時候也可能是jdk版本的問題,改了jdk版本後,重啟下eclipse


3、emulator: ERROR: the user data image is used by another emulator. Aborting

沒有正常關閉導致的,刪除android-sdk-windows/.android/avd/對於版本/下的以.lock結尾的檔案夾就行

 
4. qemu: could not open disk image E:/Android/sdcard.img

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.