It seems like without any reason the Gradle refuses to build the project in Android Studio. I haven't change anything in the configurations and I can't find any reason of this error. The output is the following
Error:A problem occurred configuring project ':app'.
java.lang.ClassFormatError: Incompatible magic value 931269604 in class file build_f63dreec96sk8elmstb53lfie
No any Android library is recognized. So maybe there might be some problems with sdk but I have checked the dependencies and the path was set correctly. Here is a screenshot of my build.gradle.
I have already tried
1) rebuilding and cleaning the project.
2) File -> invalidate caches and restart
Are there any other ideas about fixing this problem. Thanks in advance