Android Studio: Unexpected top level exception (finished with non-zero exit value 2..)

后端 未结 3 1445
半阙折子戏
半阙折子戏 2020-12-06 02:13

When i\'m trying to debug my android app i\'m getting the following error message:

Error:Execution failed for task \':app:transformClassesWithDexFor

3条回答
  •  Happy的楠姐
    2020-12-06 03:08

    Just had the issue yesterday. I fixed it by manually removing the build/ and app/build/ folders, and by building the project again.

    But it also might come from something else like your app reaching the 65k methods limit (in what case "Configuring Your App for Multidex with Gradle" will fix your issue). So you will need to provide the full Graddle log for us to be able to check more in detail what the issue could be.

提交回复
热议问题