Cause: Write access is allowed from event dispatch

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Cause: Write access is allowed from event dispatch相关的知识,希望对你有一定的参考价值。

出现的问题:升级as后,编译原有项目出现

Error:Failed to complete Gradle execution.Cause:Write access is allowed from event dispatch thread only

    原因:升级后的as运行时jre和本地安装的jdk有冲突,建议使用as安装目录自带的jre目录。

    解决:进入项目的程序结构,选中左边的sdk路径选项(sdk location)--> jdk路径(jdk location) --> 勾选use embedded jdk选项

以上是关于Cause: Write access is allowed from event dispatch的主要内容,如果未能解决你的问题,请参考以下文章

Cannot access a disposed object. A common cause of this error is disposing

Cause: dx.jar is missing

Android的报错提示:Error:Cause: buildToolsVersion is not specified.

nested exception is org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. Cause: org

Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: ..... this is incompatible with sq

Error querying database. Cause: org.apache.ibatis.reflection.ReflectionException: There is no gette