Error generating a signed APK in Android Studio "Access is allowed only from the message sending stream."

Full error message:

Throwable
Access is allowed from event dispatch thread only.
Details: Current thread: Thread[ApplicationImpl pooled thread 5,4,main] 1188159197
Our dispatch thread:Thread[AWT-EventQueue-0 0.9.2#AI-135.1569493, eap:false,6,main] 2038027461
SystemEventQueueThread: Thread[AWT-EventQueue-0 0.9.2#AI-135.1569493, eap:false,6,main] 2038027461

Does anyone know some way to resolve this or some workaround to still create a signed APK? My version for Android is version 0.9.2

+4
source share

All Articles