I posted this question so that someone may encounter this similar error in the future.
The reason why you got this error is because your cocos creator project folder is too deep and/or your parent folder and your project folder name is too long.
as you can see in the native.log my cocos creator project is at
Try moving it up. Maybe somethings like this
If it’s still not work. Try
Because the whole path is too long so it can’t compile those error files into the target path in my case are
In your case the files that error maybe different.