Error:The newly created daemon process has a different context than expected.
It won't be possible to reconnect to this daemon. Context mismatch:
Java home is different.
Wanted: DefaultDaemonContext[uid=null,javaHome=C:\Program Files\Java\jdk1.7.0_21,daemonRegistryDir=C:\Users\andy\.gradle\daemon,pid=8608,idleTimeout=null,daemonOpts=-XX:MaxPermSize=256m,-XX:+HeapDumpOnOutOfMemoryError,-Xmx1024m,-Dfile.encoding=GBK]
Actual: DefaultDaemonContext[uid=6e28f76e-d0d9-44c8-85cb-af5ebcbdc53c,javaHome=C:\Program Files\Java\jdk1.7.0_21\jre,daemonRegistryDir=C:\Users\andy\.gradle\daemon,pid=3852,idleTimeout=10800000,daemonOpts=-XX:MaxPermSize=256m,-XX:+HeapDumpOnOutOfMemoryError,-Xmx1024m,-Dfile.encoding=GBK]
Ahha.
For whatever reason I had symlink
/Library/Java/JavaVirtualMachines/jdk1.7.017.jdk/Contents/Home/jre/lib/tools.jar
pointing to
/Library/Java/JavaVirtualMachines/jdk1.7.017.jdk/Contents/Home/lib/tools.jar
It seems this confuses Gradle. After removing this symlink Gradle works without problems.
我把jre下面的tools.jar删除就oK了,这个tools.jar是我自己测试的时候放的忘记删除了
错误:Unable to create Debug Bridge:Unable to start adb server
一般情况下都是360安全卫士把adb端口给占用了