COCOS2DX 3.10报错 :Native thread exiting without having called DetachCurrentThread

06-06 01:07:30.968: D/cocos2d-x debug info(13275): In the constructor of HttpClient!
06-06 01:07:30.971: I/System.out(13275): *** url=http://t.ddkids.com/api/learn_math/check_levels
06-06 01:07:30.973: D/libc-netbsd(13275): [getaddrinfo]: hostname=t.ddkids.com; servname=(null); cache_mode=(null), netid=0; mark=0
06-06 01:07:30.974: D/libc-netbsd(13275): [getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=4; ai_family=0
06-06 01:07:30.974: I/System.out(13275): [CDS]rx timeout:60000
06-06 01:07:30.974: I/System.out(13275): [socket][2] connection t.ddkids.com/115.159.206.71:80;LocalPort=36673(30000)
06-06 01:07:30.974: I/System.out(13275): [CDS]connect[t.ddkids.com/115.159.206.71:80] tm:30
06-06 01:07:30.976: D/Posix(13275): [Posix_connect Debug]Process com.ddkids.play2math :80
06-06 01:07:30.984: I/System.out(13275): [socket][/192.168.1.102:36673] connected
06-06 01:07:30.984: I/System.out(13275): [OkHttp] sendRequest>>
06-06 01:07:30.985: I/System.out(13275): OkBuffer write source.head == null !
06-06 01:07:30.985: I/System.out(13275): [OkHttp] sendRequest<<
06-06 01:07:31.022: W/art(13275): Native thread exiting without having called DetachCurrentThread (maybe it’s going to use a pthread_key_create destructor?): Thread[30,tid=13340,Native,Thread*=0xab725c30,peer=0x12e69080,“Thread-81900”]
06-06 01:07:31.022: D/JniHelper(13275): JniHelper::getJavaVM(), pthread_self() = -521351168
06-06 01:07:31.025: D/cocos2d-x debug info(13275): JS: readyState: 4 ,statusText:200 OK, status:200
06-06 01:07:31.025: D/cocos2d-x debug info(13275): JS: responseText:
06-06 01:07:31.025: D/cocos2d-x debug info(13275): JS: {“error”:0,“data”:{“version”:3.05}}

替换了3.11的CURL(但不一定是CURL引起) 貌似是JNI的问题 我自己么有特别的JNI 请问这里大概是什么问题》?如何修复?谢谢!

从错误来看是因为在不同线程里调用了JNI函数导致出问题。怎么重现呢?

安卓6.0的机器上出现一直出现 (小米max 红米note3) 好想是通过minxmlhttp发送http请求就会出现这个问题。 我已经打算换原声的http接口了

minxmlhttp, 这个是你自己加的模块?

是这个:
XmlHttpRequest
cocos2dx 自带的哦