Gradle 4.4.1 native build issues on Windows

Updated gradle wrapper to use gradle 4.4.1 (from 4.3.1).

Getting a build error:
A problem occurred configuring project ‘:cpp:platform’.

Exception thrown while executing model rule: NativeBinaryRules#assignTools(NativeBinarySpec, NativeToolChainRegistryInternal, ProjectLayout)
java.lang.NullPointerException (no error message)

I have VS 2017, and MS SDK 8.1, 10 installed on the system

I have no idea what’s causing this.

Any help would be appreciated.


Just an update.

I tried Gradle 4.4.0 - same behavior.
I installed VS 2015 and reverted gradle wrapper to use gradle 4.3.1 and everything works now.

I think there is a bug in VS detection in Gradle 4.4.x

I had some time last night.
I was able to repro this issue on a bare bones hello world project.

I opened an issue on github:

Just an update - the issue was on my side.
The VS install was missing a couple of components.