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
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.
I updated the Kotlin version to the latest which solved it (while still using Instant Run)
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.
Switch off the Instant Run in Preferences helped me