Gradle 4.4.1 native build issues on Windows


(Dror Smolarsky) #1

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.

Thanks


(Dror Smolarsky) #2

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


(Dror Smolarsky) #3

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


(Dror Smolarsky) #4

I opened an issue on github:


(Dror Smolarsky) #5

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