问题
When i try to run the command python android build -p cpp-tests
, i'm getting an error as in the image:
Before this, I had another error message about Android SDK Tools version compatiblity. So, I just replaced sdk version form 26.0.0 to 25.2.3 and it worked. But for this i'm not getting any solution. Any help would be appreciated. Thank You.
回答1:
#include <unistd.h>
header is missing in ProcessCpuTracker.cpp
file for NDK v15, there is an issue reported for the same.
Either you downgrade NDK to previous version r14 or apply patch by yourself.
Patch will be included in official release of 3.16.
来源:https://stackoverflow.com/questions/44734381/cocos2d-xi-have-an-error-when-i-try-to-run-python-android-build-py-p-19-cpp