Error: Abnormal build process termination in Android Studio 2.0
<p>This week I updated Android Studio to version 2.0. There is a <a href="http://tools.android.com/knownissues#TOC-Gradle-Sync-Failed:-Broken-Pipe" rel="nofollow noreferrer" title="known issue">known issue</a> concerning Gradle, so I added <code>export _JAVA_OPTIONS="-Djava.net.preferIPv6Addresses=true"</code> to my ~/.profile (on Ubuntu 15.10).</p>

<p>But now I get this error when compiling:</p>

<pre><code>Error:Abnormal build process termination: 
Picked up _JAVA_OPTIONS: -Djava.net.preferIPv6Addresses=true
Build process started. Classpath: /opt/android-studio/lib/jps-launcher.jar:/usr/lib/jvm/java-8-oracle/lib/tools.jar:/opt/android-studio/lib/optimizedFileManager.jar:/opt/android-studio/lib/ecj-4.4.jarError connecting to ::1:44484; reason: Protocol family unavailable: /0:0:0:0:0:0:0:1:44484
java.net.SocketException: Protocol family unavailable: /0:0:0:0:0:0:0:1:44484
at sun.nio.ch.Net.connect0(Native Method)
at sun.nio.ch.Net.connect(Net.java:454)
at sun.nio.ch.Net.connect(Net.java:446)
at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:648)
at io.netty.channel.socket.nio.NioSocketChannel.doConnect(NioSocketChannel.java:210)
at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.connect(AbstractNioChannel.java:207)
at io.netty.channel.DefaultChannelPipeline$HeadContext.connect(DefaultChannelPipeline.java:1208)
at io.netty.channel.ChannelHandlerInvokerUtil.invokeConnectNow(ChannelHandlerInvokerUtil.java:117)
at io.netty.channel.DefaultChannelHandlerInvoker.invokeConnect(DefaultChannelHandlerInvoker.java:248)
at io.netty.channel.AbstractChannelHandlerContext.connect(AbstractChannelHandlerContext.java:218)
at io.netty.channel.ChannelOutboundHandlerAdapter.connect(ChannelOutboundHandlerAdapter.java:47)
at io.netty.channel.ChannelHandlerInvokerUtil.invokeConnectNow(ChannelHandlerInvokerUtil.java:117)
at io.netty.channel.DefaultChannelHandlerInvoker.invokeConnect(DefaultChannelHandlerInvoker.java:248)
at io.netty.channel.AbstractChannelHandlerContext.connect(AbstractChannelHandlerContext.java:218)
at io.netty.channel.ChannelOutboundHandlerAdapter.connect(ChannelOutboundHandlerAdapter.java:47)
at io.netty.channel.ChannelHandlerInvokerUtil.invokeConnectNow(ChannelHandlerInvokerUtil.java:117)
at io.netty.channel.DefaultChannelHandlerInvoker.invokeConnect(DefaultChannelHandlerInvoker.java:248)
at io.netty.channel.AbstractChannelHandlerContext.connect(AbstractChannelHandlerContext.java:218)
at io.netty.channel.AbstractChannelHandlerContext.connect(AbstractChannelHandlerContext.java:212)
</code></pre>

<p>What can I do?</p>