Java finished with non-zero exit value 2 - Android Gradle

前端 未结 23 2826
甜味超标
甜味超标 2020-11-22 02:54

I\'m getting this error executing my Android app (I cleaned it and then built it, but the error is still present)

  • Sync: OK
  • Make Project: OK
23条回答
  •  傲寒
    傲寒 (楼主)
    2020-11-22 03:02

    WORKED FOR ME :)

    i upgraded the java to the latest version 8 previously it was 7 and then go to OPEN MODULE SETTING right clicking on project and changed the jdk path to /usr/lib/jvm/java-8-oracle the new java 8 installed. And restart the studio

    check in /usr/lib/jvm for java 8 folder name

    I am using ubuntu

提交回复
热议问题