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

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

    I didn't know (by then) that "compile fileTree(dir: 'libs', include: ['*.jar'])" compile all that has jar extension on libs folder, so i just comment (or delete) this lines:

    //compile 'com.squareup.retrofit:retrofit:1.9.0'
    //compile 'com.squareup.okhttp:okhttp-urlconnection:2.2.0'
    //compile 'com.squareup.okhttp:okhttp:2.2.0'
    
    //compile files('libs/spotify-web-api-android-master-0.1.0.jar')
    //compile files('libs/okio-1.3.0.jar')
    

    and it works fine. Thanks anyway! My bad.

提交回复
热议问题