1. 程式人生 > >Android Studio出現“Write access is allowed from event dispatch thread only”

Android Studio出現“Write access is allowed from event dispatch thread only”

Android Studio更新後出現““Write access is allowed from event dispatch thread only””提示,原因是Android Studio自帶的jdk和自己安裝的jdk衝突造成的。

**解決方法:
點選Android Studio的File-project structure,然後勾選jdk的use embedded jdk選項,如下圖:**
這裡寫圖片描述