Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Could not download kotlin-compiler-embeddable.jar

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

like image 579
Krutarth Patel Avatar asked Mar 21 '19 08:03

Krutarth Patel


3 Answers

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 > Build Tools > Gradle. Check the Offline work checkbox off.

Click Apply or OK.

like image 140
Ryan Godlonton-Shaw Avatar answered Oct 23 '22 19:10

Ryan Godlonton-Shaw


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

like image 24
Azhar Husain Raeisi Avatar answered Oct 23 '22 20:10

Azhar Husain Raeisi


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.

like image 2
Arjun Yadav Avatar answered Oct 23 '22 19:10

Arjun Yadav