1

When ever I create a project, while syncing it gets an error.

sync failed 542 ms
Run build   355 ms
null    
Could not download fastutil.jar (it.unimi.dsi:fastutil:7.2.0): No cached version available for offline 
mode    
Jon
  • 3,573
  • 2
  • 17
  • 24
MrHolmes
  • 21
  • 1
  • 3

2 Answers2

0

Download the library jar file form hear : https://mvnrepository.com/artifact/it.unimi.dsi/fastutil

and follow the link : How to add a jar in External Libraries in android studio

I hope it'll help you...!

Viral Patel
  • 1,296
  • 1
  • 11
  • 24
0

Disable offline mode

  1. Open the Preferences window by clicking File > Settings (on Mac, Android Studio > Preferences).
  2. In the left pane, click Build, Execution, Deployment > Gradle.
  3. Uncheck the Offline work checkbox.

Click Apply or OK and sync the project

Md. Asaduzzaman
  • 14,963
  • 2
  • 34
  • 46