I had a similar issue just now. I was trying to use khttp in an Android app. Here's the XML that library gave me:
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
...and
<dependency>
<groupId>com.github.jkcclemens</groupId>
<artifactId>khttp</artifactId>
<version>-SNAPSHOT</version>
</dependency>
What I ended up doing was editing the root build.gradle
file and adding this:
allprojects {
repositories {
maven {
url "https://jitpack.io"
}
}
}
Then, I edited the app's gradle file, and added this line to the existing dependencies { .... }
section:
compile 'com.github.jkcclemens:khttp:master-SNAPSHOT'
Once done, I hit the "try again" or "sync" button on the yellow bar that appeared to get Android Studio 3.0.1 to recognise the changes I'd made.
I followed the instructions on the JitPack homepage.