Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JavaLaunchHelper is implemented in both java and libinstrument.dylib. One of the two will be used. Which one is undefined

Tags:

java

java-8

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.

like image 989
Sourabh Avatar asked May 27 '16 07:05

Sourabh


2 Answers

The following steps solved my issue:

Android Studio > File > Invalidate Caches / Restart.. > Invalidate and Restart

like image 61
vikoo Avatar answered Nov 05 '22 19:11

vikoo


The Android team has stated that this is a known issue with no negative effects. See AOSP issue 2049707 which references JDK issue 8022291

like image 20
RussHWolf Avatar answered Nov 05 '22 21:11

RussHWolf