Can't compile my Android project

后端 未结 2 948
南方客
南方客 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: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! :)

提交回复
热议问题