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

后端 未结 5 1690
渐次进展
渐次进展 2020-12-03 18:39

This is my .gradle file:

apply plugin: \'com.android.application\'

android {
    compileSdkVersion 21
    buildToolsVersion \"21.1.2\"

    defaultConfig {
         


        
5条回答
  •  Happy的楠姐
    2020-12-03 19:11

    I had copied the required library inside my_project/app/libs and also added the dependency in build.gradle. So, in my case I removed the library that I had copied in my_project/app/libs. As gradle maintains all the dependency I don't have to put the library in /libs. This fixed my problem.

提交回复
热议问题