Andnroid Studio Settings Repository Plugin SYNC Failed Prolem
Android Studio Version:2.2;
某種原因導緻Android Studio個人資料設定全部被删,樣式回歸到“出廠模式”,但在使用SYNC同步的時候,無論Overwrite Local或者Overwrite Remote一直失敗,提示:Commit on repo without HEAD currently not supported
*1).git clone你Github中settings repository;
*2).打開C:\Users\%USER%.AndroidStudio2.2\config\settingsRepository\repository目錄,并将git目錄清空(如果有個性化設定,建議先備份,然後如果該目錄不為空的話,請清空),然後将上一步中下載下傳的檔案拷貝到此目錄。
注:我的Android Studio是2.2版本,其他版本請切換到對應目錄。
*3).然後重新啟動Android Studio發現所有的style,templete等又回來了,SYNC操作也都正常了。
本文轉自 breezy_yuan 51CTO部落格,原文連結:http://blog.51cto.com/lbrant/1855389,如需轉載請自行聯系原作者