無法更新 Android SDK Tools--"be accessing the directory 'E:\Android\android-sdk-windows\tools"



用 SDK Manager.exe 無法更新 Android SDK Tools 的解決辦法

【故障描述】

執行 Android SDK 中的 SDK Manager.exe 更新 SDK 時,一切都順利,只有 Android SDK Tools 無法更新。

並且,下載也順利,能在 android-sdk-windows\temp 下找到下載完成的 tools_r18-windows.zip,就是下載完成後安裝時,提示:

-= Warning! =-
A folder failed to be moved. On Windows this typically means that a program is using that folder (for example Windows Explorer or your anti-virus software.) Please momentarily deactivate your anti-virus software or close any running programs that may be accessing the directory 'E:\Android\android-sdk-windows\tools'. When ready, pess YES to try again.

此時,根據提示關閉殺毒軟件或別的軟件等都無法更新成功。

 

【問題所在】

負責更新 Android SDK Tools 的工具,恰恰就在 tools 文件夾中,所以導致了這個問題。

 

【解決辦法】

先關閉 SDK Manager.exe 等任何使用 android-sdk-windows 裏面文件的軟件(尤其要注意在任務管理器裏面結束 adb.exe)。

將 tools 文件夾複製並改名爲 tools.tmp,雙擊執行 tools.tmp\android.bat,之後會自動啓動 Android SDK Manager,再更新 Android SDK Tools 便一切順利。


轉自:http://hi.baidu.com/yangw80/item/edaa03e9ba9eecc0bbf37d14

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章