使用Android Studio 3.0 時(shí)愿卒,構(gòu)建項(xiàng)目出現(xiàn)以下錯(cuò)誤。
Gradle error : Write access is allowed from event dispatch thread only in android studio
解決方法
問題出現(xiàn)的原因是Android studio與我安裝的jdk版本存在沖突。所以只要把jdk的位置設(shè)置到Android studio即可。
只要在File->Project Structure->SDK Location中找到JDK location,在Use embedded JDK上打勾就行了溉潭。
解決方法是在Stack Overflow上找到的净响。