Android studio 报错 Failed to complete Gradle execution already disposed:module:'***'

删除了Modul后,进行delete文件,之后建立一个新的同名Modul(如:sendsms,之前删除的也是sendsms),进行编译报:弹出框报错:

Failed to complete Gradle execution.
Cause:
Already disposed:module:'sendsms'

Android studio 报错 Failed to complete Gradle execution already disposed:module:'***'_第1张图片


有时这个错误会导至布局文件不能以Design方式打开,报如下错误。

Rendering Problems:
The following classes could not be instantiated:
- android.support.v7.internal.widget.ActionBarOverlayLayout
…………

解决方法:
1、手动build下工程,然后手动同步下工程,按一下layout editor上的刷新键。
2、再重新启动软件就行了。

Android studio 报错 Failed to complete Gradle execution already disposed:module:'***'_第2张图片

你可能感兴趣的:(android,layout,editor,Studio,already,rendering,problems,disposedmodu)