最近换电脑了,新安装了一个android studio 编译原来的工程发现出现了
Gradle error : Write access is allowed from event dispatch thread only in android studio错误
去百度了一通,发现找不到答案,在stackoverflow中发现答案:
So the problem was concluded in that android studio conflicted with my installed jdk version, so it was resolved when i checked jdk location (Project Structure -> SDK Location), ticked 'Use embedded JDK' checkbox and set jdk location to 'path to android studio'\Android Studio\jre
翻译过来就是:
给当前的android studio的jdk换个版本,使用android studio 自带的jre,因为自己电脑安装的jdk版本和android studio sdk版本冲突。