I got following error when I try to enable Kotlin gradle configuration. It take 10 minutes to solve this error.

Solution: 

You need to go your project level gradle file and add following line into allprojects repository.

 maven {url"https://jitpack.io"}

So overall repository looks like below screenshots.



Enjoy coding!!!