I solved it by going to settings and changing working offline checkbox to online. It then synced and all was ok after that.
The reason why there was an issue to start was that some of the earlier packages werent downloaded to fit the project file I had been working on. On 3 Nov 2016 4:48 p.m., "baya sime" <[email protected]> wrote: > it is my question too, can anybody help? > > On Tuesday, October 4, 2016 at 4:23:51 PM UTC-7, Hakeem Abdullah wrote: >> >> Can someone please help explain why I obtain an error stating my Gradle >> project sync failed? I have downloaded Android Studio 2.2 and executed it >> but it runs with this error stating the following event log: >> >> 7:14:14 AM Gradle sync started >> 7:14:29 AM Gradle sync failed: Could not download junit.jar >> (junit:junit:4.12): No cached version available for offline mode >> Consult IDE log for more details (Help | Show Log) >> 7:14:54 AM Gradle sync started >> 7:14:56 AM Gradle sync failed: Could not download junit.jar >> (junit:junit:4.12): No cached version available for offline mode >> Consult IDE log for more details (Help | Show Log) >> > -- > You received this message because you are subscribed to a topic in the > Google Groups "Android Developers" group. > To unsubscribe from this topic, visit https://groups.google.com/d/ > topic/android-developers/TWbIjqTdsGQ/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/android-developers. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/android-developers/b7477d3a-f8a5-4bbe-b609- > 3b345f423b7b%40googlegroups.com > <https://groups.google.com/d/msgid/android-developers/b7477d3a-f8a5-4bbe-b609-3b345f423b7b%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/CACPLViVXJKYes%2BebWfVa%3D1%3DQDcEW1FpRqCA6rXSrGPQpfQLiJQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

