I believe this is a problem with the latest version of the gradle plugin.
I use:
classpath 'com.android.tools.build:gradle:2.2.0-alpha3'
and I get the same error as you.
You can return to this version of the plugin to fix the problem:
classpath 'com.android.tools.build:gradle:2.1.0'
However, this means that you cannot use Instant Run if you are using the Preview Studio version for Android.
For reference, I am using android studio:
Android Studio 2.2 Preview 3 Build #AI-145.2949926, built on June 7, 2016 JRE: 1.8.0_76-release-b01 x86_64 JVM: OpenJDK 64-Bit Server VM by JetBrains sro
I tried v21 device and got an error. On devices running <21 or> 21, no error was received.
sfreeman
source share