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

前端 未结 23 2439
甜味超标
甜味超标 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:26

    There are two alternatives that'll work for sure:

    1. Clean your project and then build.

    If the above method didn't worked, try the next.

    1. Add the following to build.gradle file at app level

      defaultConfig {   
      
      multiDexEnabled true
      
      }
      

提交回复
热议问题