I downloaded the latest cocos2dx(3.10) and NDK(r11). I have the following error when I executed cocos compile -p android --android-studio
.
Error:
I started with NDK 11 which didn't work. Possible problem as you told is RELEASE.txt doesn't exist for that but then I downgraded to NDK 10e, still didn't work even though RELEASE.txt was present. Then I had to downgrade to NDK 9d which worked without any modifications.
In your NDK directory create RELEASE.txt file and enter the version, e.g.
r11c (64-bit)
I also had the same problem and I solved it by downgrading my NDK to the 10 version. I think Cocos2d-X may not be compatible with the NDK 11, since the RELEASE.txt file is missing from it.