我最近創建了一個新的本地存儲庫,並從遠程存儲庫中提取了一些代碼。SDK位置未找到
當我打開這個項目,我在控制檯收到一條消息:
Gradle sync failed: SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable.
Consult IDE log for more details
我跟着指示here設置環境變量(IM在一臺Mac),並檢查了我的local.properties:
所以,這兩件事情都解決了,我仍然得到這個錯誤。我搜查了,但沒有解決方案爲我工作。
任何幫助?謝謝。
編輯:
這隻發生在一個項目。其餘的項目完美運作。
你是怎麼修好的? – Anjum