無法生成AVD模擬器
安裝完AS,發現無法生成模擬器AVD,解決方法:首先網上說要安裝各種庫,例如lib64c++,其實不用,直接在Ubuntu軟件更新中更改驅動,將Xorg驅動改爲NVIDIA驅動(最好是他的穩定版本)。
參考資源:https://android.stackexchange.com/questions/145437/reinstall-avd-on-ubuntu-16-04/158125#158125,尤其是他的建議。
無法運行程序
報錯:Error:Execution failed for task ':app:clean'. > Unable to delete directory
,解決方法就是關閉Android Studio,把出錯的/app/build 文件夾刪除,重啓再clean就好了,但是下次build的時候還是出這個問題,在code.google.com上找到很多人升級到2.0出這個錯誤,把 Instant Run 禁用了,clean,Sync之後就好了。
File->settings->Build,Execution,Deployment->instant run
//取消勾選Enable Instant Run....