Could not download kotlin-compiler-embeddable.jar

旧街凉风 提交于 2020-05-29 03:58:30

问题


I am trying to run my project in android studio , but I am getting following issue.

Could not download kotlin-compiler-embeddable.jar (org.jetbrains.kotlin:kotlin-compiler-embeddable:1.2.71): No cached version available for offline mode

It would be great , if I got the solution.Looking forward for your helpful suggestions


回答1:


Gradle is in offline mode.

Open the Preferences window by clicking File > Settings (on Mac, Android Studio > Preferences).

In the left pane, click Build, Execution, Deployment > Gradle. Check the Offline work checkbox off.

Click Apply or OK.




回答2:


Simple Steps:

  1. Click File > Project Structure
  2. Click Dependencies >
  3. Find and Click org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.3.21 (or whatever your current version is)
  4. Under Details > update section, click [update variable][update dependencies]
  5. Click Ok

Best Regards




回答3:


Go to Android Studio open project and then File > project Structure > Suggestions and update all file and then click on apply. [https://i.stack.imgur.com/4wwCW.png]

I think your adroid project maximum problem will be solved.




回答4:


Switch off Gradle's offline mode: Gradle settings -> Toggle offline mode or ctrl+shift+A offline mode




回答5:


Go to project level Gradle and change $kotlin_version to an updated version.

classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"


来源:https://stackoverflow.com/questions/55276111/could-not-download-kotlin-compiler-embeddable-jar

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!