2012年3月29日 星期四

解決PANIC: Could not open: C:\Users....

如果你的android-sdk-windows是安裝在C槽以外的硬碟區,當執行模擬器時會發生類似下面的錯誤訊息:
PANIC: Could not open: C:\Users\使用者名稱\.android/avd/AVD名稱.ini


解決方法就是在 系統內容-->進階-->環境變數 中,在 系統變數裡面增加一個 ANDROID_SDK_HOME 變數,變數值填入安裝的硬碟代號,如下圖便可解決。



測試環境: Win7 SP1 64bit

3 則留言:

  1. 感謝教學 非常實用阿~~~

    解決了我用筆電很難使用ECLIPSE的窘境

    回覆刪除
  2. THX...我也解決了....謝謝你

    回覆刪除
  3. your folder enviroment looks like Exactly the same situation in my case.
    Try a little,and....Thanks, this works for me.
    Finally, i can get my Android run on my XP laptop computer. i knew it's old.
    but it runs well, only a little slower.

    Try so many solutions from various websites:
    (including in Eclipse setting up Preferences->Windows->Run/Debug->String Substitution->new variable->ANDROID_SDK_HOME:D:\Documents and Settings\Admin), but with no luck,
    Try to use mklink "C:\%USERPROFILE%\\.android" "D:\\" But in XP it don't understand this mklink Win 7 command.
    Only Your Solution Works, and easy, SO THANK U Again.

    回覆刪除