android studio unable to socket,Android Studio unable to run project on device?

I am getting the following error. I couldn't find why this happens on the internet either.

ddms: Can't bind to local 8601 for debugger

ddmlib: Broken pipe

java.io.IOException: Broken pipe

at sun.nio.ch.FileDispatcher.write0(Native Method)

at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:29)

at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:69)

at sun.nio.ch.IOUtil.write(IOUtil.java:40)

at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:336)

at com.android.ddmlib.JdwpPacket.writeAndConsume(JdwpPacket.java:213)

at com.android.ddmlib.Client.sendAndConsume(Client.java:675)

at com.android.ddmlib.HandleHeap.sendREAQ(HandleHeap.java:342)

at com.android.ddmlib.Client.requestAllocationStatus(Client.java:521)

at com.android.ddmlib.DeviceMonitor.createClient(DeviceMonitor.java:847)

at com.android.ddmlib.DeviceMonitor.openClient(DeviceMonitor.java:815)

at com.android.ddmlib.DeviceMonitor.processIncomingJdwpData(DeviceMonitor.java:775)

at com.android.ddmlib.DeviceMonitor.deviceClientMonitorLoop(DeviceMonitor.java:664)

at com.android.ddmlib.DeviceMonitor.access$100(DeviceMonitor.java:46)

at com.android.ddmlib.DeviceMonitor$3.run(DeviceMonitor.java:592)

ddmlib: Broken pipe

java.io.IOException: Broken pipe

at sun.nio.ch.FileDispatcher.write0(Native Method)

at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:29)

at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:69)

at sun.nio.ch.IOUtil.write(IOUtil.java:40)

at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:336)

at com.android.ddmlib.JdwpPacket.writeAndConsume(JdwpPacket.java:213)

at com.android.ddmlib.Client.sendAndConsume(Client.java:675)

at com.android.ddmlib.HandleHeap.sendREAQ(HandleHeap.java:342)

at com.android.ddmlib.Client.requestAllocationStatus(Client.java:521)

at com.android.ddmlib.DeviceMonitor.createClient(DeviceMonitor.java:847)

at com.android.ddmlib.DeviceMonitor.openClient(DeviceMonitor.java:815)

at com.android.ddmlib.DeviceMonitor.processIncomingJdwpData(DeviceMonitor.java:775)

at com.android.ddmlib.DeviceMonitor.deviceClientMonitorLoop(DeviceMonitor.java:664)

at com.android.ddmlib.DeviceMonitor.access$100(DeviceMonitor.java:46)

at com.android.ddmlib.DeviceMonitor$3.run(DeviceMonitor.java:592)

Note:

My device Nexus that runs 5.0.2

My android studio is 1.0.1

My platform is mac mavericks

I am just trying to run the Login template app nothing more.

Thanks

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值