While building my project in Android Studio 2.1.1 I got this error:
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.
I've seen other questions like this one but they all say it was fixed in some version of Java7.
The following steps solved my issue:
Android Studio > File > Invalidate Caches / Restart.. > Invalidate and Restart
The Android team has stated that this is a known issue with no negative effects. See AOSP issue 2049707 which references JDK issue 8022291
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With