Can't compile my Android project

后端 未结 2 949
南方客
南方客 2021-01-12 11:13

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]
         


        
相关标签:
2条回答
  • 2021-01-12 11:28

    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.

    0 讨论(0)
  • 2021-01-12 11:36

    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! :)

    0 讨论(0)
提交回复
热议问题