首页 > 移动平台 > 详细

mac android studio 编译时报Class JavaLaunchHelper is implemented in both

时间:2016-06-28 18:30:33      阅读:7762      评论:0      收藏:0      [点我收藏+]
Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/bin/java and /Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/jre/lib/libinstrument.dylib. One of the two will be used. Which one is undefined

  

windows上没有这个问题,有人说jdk的问题,试了一下jdk7和jdk8都有这个问题,后来查到原因是和gradle最新的插件不兼容,改成1.5.0之后解决!

classpath ‘com.android.tools.build:gradle:1.5.0‘

  将2.1换成1.5就好了。

android studio真坑爹!

mac android studio 编译时报Class JavaLaunchHelper is implemented in both

原文:http://www.cnblogs.com/sunzhenxing19860608/p/5624355.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!