I created new lua project by using Code IDE and didn’t do anything to the code. When I ran on Android Phone, It showed this
and the phone screen shows the the IP number and waiting for file transfer message, but the JS project works fine.
Any idea about this problem?
I use Cocos2d-x 3.4 and Code IDE 1.2.0 on Windows.
Open Cocos2dCOnstants.lua and replace/add this at the end
cc.AsyncTaskPool = cc.AsyncTaskPool or {}
cc.AsyncTaskPool.TaskType =
{
TASK_IO = 0,
TASK_NETWORK = 1,
TASK_OTHER = 2,
TASK_MAX_TYPE = 3,
}
Thank you. It works now. Do I have to do this when I create new project everytime?
You could make the changes directly in the cocos2d-x source folder. You just need to find the files there. I just changed the file for every new project.