Fail to build for Gear VR

Thanks for your response .
As you can hopefully see from my update to the original posting - I had the SDK path to the JDK incorrectly mapped. But I changed it (matching your screen grab) and it still fails as listed above.
I’m using Visual Studio 15, could the be the problem? Should I uninstall everything and try again and if so is there a preferred order of installing the components e.g. UE4, VS then Tegra?
Cheers
Phil