:app:dexDebug ExecException finished with non-zero exit value 2

前端 未结 13 1304
孤独总比滥情好
孤独总比滥情好 2020-11-28 13:44

Could anyone help me out with the following error. When i clean the project, it doesn\'t show any error but every time i try to run i get this message.

Error:Execut

13条回答
  •  Happy的楠姐
    2020-11-28 13:47

    For me the solution was to remove an unnecessary/duplicate dependency entries. This is a similar solution others offered here that makes sense, but not exactly the same solution as those offered by others.

    Since I was already including *.jar files in the list of files to be compiled, there was no need for additional entries in the dependencies list.



    Before:

    dependencies {
        compile fileTree(dir: 'libs', include: ['*.jar'])
    
        compile 'com.android.support:appcompat-v7:22.2.0'
        compile 'com.parse.bolts:bolts-android:1.+'
        compile fileTree(dir: 'libs', include: 'Parse-*.jar')
    }
    

    After:

    dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    
    compile 'com.android.support:appcompat-v7:22.2.0'
    

    }

提交回复
热议问题