Android Studio Setup - Cocos2d-x

Having trouble with initial setup build for android. Using windows 10. I am attempting to run the cpp-tests like in the programmer documentation. I have gotten those tests to work in visual studio, but I would like to build to android, so I am trying to get those tests to work on android studio. I definitely downloaded the NDK from the SKD tools area, but it does not show in the project config, and I cannot select it(greyed out). It does show outside of project though in the default settings. Gradle plugin 3.1.0, Gradle version 4.8.1. I played around with version numbers for NDK and Gradle, not sure how to fix, thanks.

Which version of Cocos2d-x?

Cocos2d-x 4.0

I was able to get past this error with the info from a YT video, mainly the Gradle versions (4.1 plugin and 6.5 for version). Then putting ndk.dir=PATH in the file. Though there are still some warnings if anyone knows the best versions of the individual components feel free to let me know.

It should work, but if you run into trouble, you can always try the fork of Cocos2d-x v4 that is more up-to-date and definitely does not have these issues.