I am working with Android Studio 3.1 Canary 6 and I am getting this error when I build my project. I search this error and many users get this with different reasons, but I did
I found the problem. There is an error in my code, but Android Studio don`t show me errors in code, for studio everything is fine. When I look to step by step task execution of gradle, I saw the problems.