Cocos 2d-x-3.15.1 Error in android Studio
Error occur at the time of compiling the new project in android studio
EDIT
I've new error in cocos2dxXXXXXX file, added screenshot below :
#include <unistd.h>
header is missing in ProcessCpuTracker.cpp
file for NDK v15
check this answer for more detail.
EDIT
Cocos2dxDownloader.java
uses Apache HTTP Client which is removed in Android 6.0
.
There is a PR for this issue so you can use latest version or apply patch by yourself :
Add android-async-http-1.4.9.jar inside cocos/platform/android/java/libs/
folder
Minor changes (import statement) in Cocos2dxDownloader.java
file