Hopefully last fix for build.gradle. Everything works as expected now thanks to @AbrarSyed