-1

I tried but always get error of junit. I have to remove the junit test compile from the build.gradle Let me make it more clear . I want to run the project offline fully.I have the latest Android Studio 2.0 and SDk fully updated now I want to make projects offline. I don't have net access. I want to work offline and make projects offfline.No net to connect once at the start also.

Bhaskar Saikia
  • 172
  • 1
  • 2
  • 15

2 Answers2

2

You have to have JUnit cached locally to be able to use it in offline mode. Run the tests at least once while being online, so that Gradle is able to cache the artefact.

Egor
  • 39,695
  • 10
  • 113
  • 130
  • Sorry I was editing the comment but not able to do.Actually I want to do it offline way I have no internet connection in home so and also in office proxy is there. How to do without internet connection the sync – Bhaskar Saikia Apr 19 '16 at 10:51
2

Please click on app folder in android studio and right clck then

  1. Open Module Setting
  2. goto dependencies
  3. remove junit
  4. rebuild. done!..