I found the reason of the error. To make it run you need to uncheck the “Use in-process build” option in Compiler -> Gradle settings of Android Studio.

I found the reason of the error. To make it run you need to uncheck the “Use in-process build” option in Compiler -> Gradle settings of Android Studio.
