问题
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:
- Click File > Project Structure
- Click Dependencies >
- Find and Click org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.3.21 (or whatever your current version is)
- Under Details > update section, click [update variable][update dependencies]
- 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