Results 19 comments of TreHack

``` 03-22 10:43:27.987 15606 15658 I Unity : start server 03-22 10:43:27.987 15606 15658 I Unity : UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[]) 03-22 10:43:27.987 15606 15658 I Unity : UnityEngine.Logger:Log(LogType, Object)...

额 搞错了 上面是连untiy的代码 用下面这段 ``` from poco.drivers.unity3d.unity3d_poco import UnityPoco ip = '你手机的ip地址' poco1 = UnityPoco((ip, 5001)) print(poco1.agent.hierarchy.dump()) ``` 另外建议你先查一下你手机的5001端口有没有被其他程序占用。

方便的话可以发个apk包给我们看看?

你这个问题应该就是端口的问题,ide支持下用户修改端口应该就可以了。 目前可以这样调试一下吧,在PocoManager.cs的72行https://github.com/AirtestProject/Poco-SDK/blob/ebb9e623faedebff1de712c4d0a563e9ac8fb329/Unity3D/PocoManager.cs#L72 加一个Debug语句`Debug.Log (string.Format("Tcp server started failed {0}", e));` 重新打个apk包, 然后再取一下新包的adb logcat,看看为啥5001端口为启动失败!

`Tcp server started failed System.Net.Sockets.SocketException: Address already in use` 看这句报错说明你手机里的5001端口被占了。查下你手机里什么程序占用了5001端口。

File "/usr/local/lib/python2.7/dist-packages/axmlparserpy/apk.py", line 71, in __init__ self.xml[i] = minidom.parseString(AXMLPrinter(self.zip.read(i)).getBuff()) File "/usr/local/lib/python2.7/dist-packages/axmlparserpy/axmlprinter.py", line 37, in __init__ _type = self.axml.next() File "/usr/local/lib/python2.7/dist-packages/axmlparserpy/axmlparser.py", line 59, in next self.doNext() File "/usr/local/lib/python2.7/dist-packages/axmlparserpy/axmlparser.py", line 99, in...

I defined a task like below: ``` import time @shared_task(name='test', time_limit=30) def test_task(): time.sleep(40) ``` and I also define a method to detect the failure signal, the code like below:...