1

I just created a fresh new Android application from what Android Studio proposes (1 simple activity, no dependencies, it builds and installs and runs OK).

Then I downloaded some big fat library that comes as source code from sourceforge (to be precise: it's OpenCV for Android v. 4.1.2).

I added that library as new module to my project by: File -> New -> Import module and I've chosen that library source code to be added. It worked and then gradle sync. has automatically started. It lasts for 10 minutes already and it does not seem to finish soon. Why is that when nothing should be downloaded? If some payload must have been downloaded I'd understand, but here?

EDIT: It finished with success but it lased 14 minutes! Why so long?

Marian Paździoch
  • 8,813
  • 10
  • 58
  • 103

1 Answers1

0

If you are sure you aren't downloading anything in particular, try enabling the Offline Work for Gradne Sync.

Go > File | Settings | Build, Execution, Deployment | Gradle 

Toggle 'Offline Work' mode

bijaykumarpun
  • 677
  • 4
  • 9