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

前端 未结 13 1218
孤独总比滥情好
孤独总比滥情好 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条回答
  • 2020-11-28 14:08

    I know it's late. But that's what actually worked for me.

    1. Build > Clean Project
    2. Close gradle daemon processes (ps -e| grep gradle  //this will list gradle processes)
    3. File > Invalidate caches & Restart
    

    I hope this will work for everyone.

    0 讨论(0)
  • 2020-11-28 14:08

    I was using the robolectric dependency in my android project. I removed all robolectric dependencies in gradle and deleted all my robolectric tests, then I built the app and finally I could run the android project. Hope this can work for us.

    0 讨论(0)
  • 2020-11-28 14:09

    I had the same problem, just i did Biuld--> Rebiuld project and it works again ;)

    0 讨论(0)
  • 2020-11-28 14:10

    For future readers. If you're using your own AARs and upgraded one that has a shared dependency, you can also just try cleaning the project. In Android Studio "Build" -> "Clean Project".

    This solved the issue for me, so I'd recommend giving it a quick try before you start digging for dependencies.

    0 讨论(0)
  • 2020-11-28 14:12

    Check if there are 2 classes with same name. Each class name should be unique.

    0 讨论(0)
  • 2020-11-28 14:12

    maybe for this issue you got means you added same liberay file in more than one time

    0 讨论(0)
提交回复
热议问题