Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio - Could not download artifact

I am new to Android Studio IDE. I have created a sample project using Android Studio and when I tried to build it, it comes with the following error.

Error:A problem occurred configuring root project 'SampleApp".
> Could not resolve all dependencies for configuration ':classpath'.
   > Could not download artifact 'org.bouncycastle:bcprov-jdk15on:1.48:bcprov-jdk15on.jar': No     
     cached version available for offline mode

Can anyone please figure out what I did wrong.

like image 479
Rahul Vishwakarma Avatar asked Sep 05 '14 15:09

Rahul Vishwakarma


1 Answers

It needs to download that library in order to do your build, but you've (perhaps inadvertantly) put Android Studio into offline mode. To fix it, go to Preferences > Gradle and ensure that the "Offline work" checkbox is not checked.

like image 126
Scott Barta Avatar answered Oct 11 '22 11:10

Scott Barta