No cached version of gradle

后端 未结 16 2509
悲&欢浪女
悲&欢浪女 2020-11-28 15:21

I am getting this error when syncing gradle. I am pretty new to gradle so can\'t figure out what is the problem exactly?

Error:No cached version of co

16条回答
  •  生来不讨喜
    2020-11-28 15:30

    This problem occurs, if you have offline mode switched on in your IDE and let the IDE upgrade your build file to use 0.10.1 of the gradle plugin (that is needed for the new AS version. Since you have never build with this version, it cannot be found in the offline cache.

    Go to File->Settings->Gradle (under Project Settings on the top) and disable the check in front of Offline Work (Section 'Global Gradle settings' at the bottom). Now it can download the version with the next build and afterwards you are free to use offline mode again, if you wish so.

提交回复
热议问题