I\'m trying to compile my Android version, but for some reason it says there is an error, apparently with my Java.
Information:Gradle tasks [:assembleDebug]
I've had the same problem and I found that I had installed Java SDK but not the JRE. Reinstalling the SDK and choosing to install the JRE that comes with the installer solved it for me.
Had the same issue since yesterday.
You'll need to install the JDK 1.8 from here. I installed the 8u92 kit.
Afterwards you'll need to update your JAVA_HOME environment variable. In order to update it only for Cordova projects in Visual Studio you may do this in Visual Studio options as on the screenshot.
Then everything builds fine.
Have fun! :)