Possible causes for this unexpected error include: Gradle's dependency cache may be corrupt (this so

Possible causes for this unexpected error include:
  Gradle‘s dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)
  Re-download dependencies and sync project (requires network)
  The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem.
  Stop Gradle build processes (requires restart)
  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.

先用

先用離線模式解決gradle版本包的問題,出現這個問題的原因大概是別人的項目引用的gradle包在你as下無法識別無法解壓導致的,先用你本地的gradle包(沒有的話https://services.gradle.org/distributions/去下載),然後再運行,沒有這樣的錯誤後,接下來按提示操作就可以