码迷,mamicode.com
首页 > 移动开发 > 详细

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

时间:2016-06-28 18:32:23      阅读:994      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!