Could not resolve all dependencies for configuration

I started this thread in Stackoverflow, http://stackoverflow.com/questions/31167159/ionic-build-android-failed-with-403-http-respose-from-gradle-java-home-not-vali, I am trying to build an android application and what I am now getting is the following issue(Couldn’t resolve all dependencies for configuration ‘:classpath’)after doing everything as in stackoverflow link.

Please let me know the manual solution for this if possible. I will be working on this nevertheless.

1 Like