Gradle Build failed with an exception : java.exe' finished with non-zero exit value 2

前端 未结 3 623
栀梦
栀梦 2021-01-17 03:08

build.gradle file:

android {
    compileSdkVersion 22
    buildToolsVersion \"22.0.1\"

    defaultConfig {
        applicationId \"xxxxx.com.myapp\"
                


        
3条回答
  •  醉酒成梦
    2021-01-17 03:50

    You are including libGoogleAnalyticsServices.jar twice. Based in the path, it will be include by the following line (which includes all jars in the libs directory) --

    compile fileTree(dir: 'libs', include: ['*.jar'])
    

    remove this line to avoid including the lib twice --

    compile files('libs/libGoogleAnalyticsServices.jar')
    

提交回复
热议问题