Error:Execution failed for task ':app:transformDexWithInstantRunSlicesApkForDebug'. Failed to read zip file

后端 未结 4 1146
走了就别回头了
走了就别回头了 2021-01-03 20:07

I get the following error when I tried to build my project. I\'m using Android Studio 2.3.3 and macOS High Sierra.

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


        
相关标签:
4条回答
  • 2021-01-03 20:21

    You might want to upgrade to a different version of gradle by changing the version in the gradle-wrapper.properties file, as suggested in this answer.

    0 讨论(0)
  • 2021-01-03 20:27

    I updated the Kotlin version to the latest which solved it (while still using Instant Run)

    0 讨论(0)
  • 2021-01-03 20:29

    After updating gradle distribution in gradle-wrapper.properties file problem is solved.

    distributionUrl=https\://services.gradle.org/distributions/gradle-5.5.1-all.zip
    

    check the latest from here.

    0 讨论(0)
  • 2021-01-03 20:32

    Switch off the Instant Run in Preferences helped me

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