JavaLaunchHelper is implemented in both java and libinstrument.dylib. One of the two will be used. Which one is undefined
<p>While building my project in Android Studio 2.1.1 I got this error:</p>

<blockquote>
  <p>Error:objc[2604]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk/Contents/Home/bin/java and /Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk/Contents/Home/jre/lib/libinstrument.dylib. One of the two will be used. Which one is undefined.</p>
</blockquote>

<p>I've seen other questions like this one but they all say it was fixed in some version of Java7.</p>