当我尝试运行Android 3.1 Google TV(或任何其他示例应用程序)的示例项目之一时,我收到此管道损坏错误。我正在使用Eclipse 3.7 Indigo,64位JVM,64位Ubuntu和Core2Quad,8MB内存。它启动了我的虚拟机,但.apk不会部署,我在Eclipse控制台中看到了这个错误:
[2011-12-11 20:41:28 - ddms]Created: [Debugger 8601-->1315 inactive]
[2011-12-11 20:41:28 - ddm-heap]Sending REAQ
[2011-12-11 20:41:28 - 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:72)
at sun.nio.ch.IOUtil.write(IOUtil.java:43)
at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:334)
at com.android.ddmlib.JdwpPacket.writeAndConsume(JdwpPacket.java:213)
at com.android.ddmlib.Client.sendAndConsume(Client.java:575)
at com.android.ddmlib.HandleHeap.sendREAQ(HandleHeap.java:348)
at com.android.ddmlib.Client.requestAllocationStatus(Client.java:421)
at com.android.ddmlib.DeviceMonitor.createClient(DeviceMonitor.java:854)
at com.android.ddmlib.DeviceMonitor.openClient(DeviceMonitor.java:822)
at com.android.ddmlib.DeviceMonitor.processIncomingJdwpData(DeviceMonitor.java:781)
at com.android.ddmlib.DeviceMonitor.deviceClientMonitorLoop(DeviceMonitor.java:649)
at com.android.ddmlib.DeviceMonitor.access$100(DeviceMonitor.java:42)
at com.android.ddmlib.DeviceMonitor$3.run(DeviceMonitor.java:577)
[2011-12-11 20:41:28 - ddms]Adding new client [Client pid: 1315]
[2011-12-11 20:41:28 - ddms]Closing [Client pid: 1315]
[2011-12-11 20:41:28 - ddms]broadcast 3: [Client pid: 1315]
[2011-12-11 20:41:28 - ddm-hello]Now disconnected: [Client pid: 1315]
注意:为了让vm更快地运行,我必须安装qemu-kvm,kvm-intel,ia32-libs,然后'sudo /etc/init.d/vboxdrv stop'。
我可以使用以下命令部署Contact Manager:
adb install ContactManager.apk
但是,我试图找出Eclipse从Eclipse运行代码时无法部署它的原因?
答案 0 :(得分:1)
Google TV没有联系人管理员,因此样本效果不佳。