Meituan-Dianping / Robust

Robust is an Android HotFix solution with high compatibility and high stability. Robust can fix bugs immediately without a reboot.
Apache License 2.0
4.42k stars 807 forks source link

execute command java -jar dx.jar --dex --output=classes.dex meituan.jar error #196

Open lorcanluo opened 7 years ago

lorcanluo commented 7 years ago

异常类型:编译异常

手机型号:

手机系统版本:

Robust版本:如:0.4.9

Gradle版本:如:3.3

系统:Mac

堆栈/日志:

java -jar /Users/luocan/hna/gitlab/android/HnairApp/robust/dx.jar --dex --output=classes.dex  meituan.jar errorStream output   objc[9424]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0_91.jdk/Contents/Home/bin/java (0x1048fd4c0) and /Library/Java/JavaVirtualMachines/jdk1.8.0_91.jdk/Contents/Home/jre/lib/libinstrument.dylib (0x104a964e0). One of the two will be used. Which one is undefined.
:HnairApp:transformClassesWithAutoPatchTransformForNightlyRelease FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':HnairApp:transformClassesWithAutoPatchTransformForNightlyRelease'.
> execute command    java -jar /Users/luocan/hna/gitlab/android/HnairApp/robust/dx.jar --dex --output=classes.dex  meituan.jar error

* Try:
Run with --info or --debug option to get more log output.
hedex commented 7 years ago

可以把meituan.jar给我看看吗?

w4lle commented 6 years ago

java8 老版本在 Mac 上的一个bug,升级下 jdk8 就好了 参考 https://stackoverflow.com/questions/43003012/class-javalaunchhelper-is-implemented-in-two-places?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa