Possible causes for this unexpected error include:<ul><li>Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)
<a href="syncProject">Re-download dependencies and sync project (requires network)</a></li><li>The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem.
<a href="stopGradleDaemons">Stop Gradle build processes (requires restart)</a></li><li>Your project may be using a third-party plugin which is not compatible with the other plugins in the project or the version of Gradle requested by the project.</li></ul>In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.
偶然重新打开项目就报上面的错误,根据百度一些答案没有解决,就照着旧项目改缺少的东西。。。
把缺少gradle文件夹补上,再把项目各个地方的
com.android.tools.build:gradle:2.3.2
修改一致即可
重新编译完事。。。这应该只是一种情况的解决方法,其它的引起的未知....