No cached version of gradle

后端 未结 16 2507
悲&欢浪女
悲&欢浪女 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-28 15:38

    In my case I also had an additional "offline switch" to the one in Gradle.

    Go to:

    File > Settings > Build, Execution, Deployment > Compiler
    

    There I've removed the --offline in Command-line Options. Earlier I was trying to speed up Android Studio a bit and this was one of the changes I had made.

    Everything was fine after a restart then (and I have re-enabled both offline parts).

提交回复
热议问题