Error:Unknown host \'This is usually a temporary error during hostname resolution and means that the local server did not receive a response from an authoritative server\'.
I got the same error and solved the problem using following instruction.
Go to your project level gradle build script add maven { url"https://jitpack.io"} into allprojects.
allprojects { repositories { google() jcenter() maven {url"https://jitpack.io"} } }