Android Studio Gradle Error - Protocol Family Unavailable -


so relatively new android dev. , have been getting android studio set on computers. have set fine on mac. when downloaded , installed on windows 8.1 desktop gradle build seems fail every time. error message stating protocol family unavailable. i've tried several things including uninstalling , reinstalling android studio.

note: did try said work here gradle project refresh failed - protocol family unavailable yet did not solve problem me.

i had problem , referenced thread didn't work me.

what did work setting _java_options environment variable make java use ipv4.

_java_options = -djava.net.preferipv4stack=true

note android studio sets variable in vmoptions file. reason, isn't used java vm started android studio run gradle daemon.

after did that, started work ok , gradle build project.

i hope helps.


Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -