[cocos2d-x]当我尝试在Windows 10中运行'python android-build.py -p 19 cpp-tests'时出现错误 [英] [cocos2d-x]I have an error when I try to run 'python android-build.py -p 19 cpp-tests' in Windows 10
问题描述
当我尝试运行命令 python android build -p cpp-tests
时,出现如图所示的错误:
When i try to run the command python android build -p cpp-tests
, i'm getting an error as in the image:
在此之前,我还有关于Android SDK Tools版本兼容性的另一条错误消息.因此,我只是将sdk版本形式从26.0.0替换为25.2.3,它可以正常工作.但是为此,我没有任何解决方案.任何帮助,将不胜感激.谢谢.
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.
推荐答案
#include< unistd.h>
标头,据报道有一个问题.
#include <unistd.h>
header is missing in ProcessCpuTracker.cpp
file for NDK v15, there is an issue reported for the same.
您可以将NDK降级到以前的版本r14,也可以自己应用补丁.
Either you downgrade NDK to previous version r14 or apply patch by yourself.
补丁将包含在3.16的正式版本中.
Patch will be included in official release of 3.16.
这篇关于[cocos2d-x]当我尝试在Windows 10中运行'python android-build.py -p 19 cpp-tests'时出现错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!