Step 1. Add the JitPack repository to your build file
Add it in your root settings.gradle at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
Add it in your settings.gradle.kts at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url = uri("https://jitpack.io") }
}
}
Add to pom.xml
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
Add it in your build.sbt at the end of resolvers:
resolvers += "jitpack" at "https://jitpack.io"
Add it in your project.clj at the end of repositories:
:repositories [["jitpack" "https://jitpack.io"]]
Step 2. Add the dependency
dependencies {
implementation 'com.github.victorai60:Android-android-async-http:1.4.9'
}
dependencies {
implementation("com.github.victorai60:Android-android-async-http:1.4.9")
}
<dependency>
<groupId>com.github.victorai60</groupId>
<artifactId>Android-android-async-http</artifactId>
<version>1.4.9</version>
</dependency>
libraryDependencies += "com.github.victorai60" % "Android-android-async-http" % "1.4.9"
:dependencies [[com.github.victorai60/Android-android-async-http "1.4.9"]]
An asynchronous, callback-based Http client for Android built on top of Apache's HttpClient libraries.
See what is new in version 1.4.9 released on 19th September 2015
https://github.com/loopj/android-async-http/blob/1.4.9/CHANGELOG.md
Latest Javadoc for 1.4.9 release are available here (also included in Maven repository):
https://loopj.com/android-async-http/doc/
For inspiration and testing on device we've provided Sample Application.
See individual samples here on Github
To run Sample application, simply clone the repository and run this command, to install it on connected device
gradle :sample:installDebug
You can now integrate this library in your project via Maven. There are available two kind of builds.
releases, maven central
https://repo1.maven.org/maven2/com/loopj/android/android-async-http/
Maven URL: https://repo1.maven.org/maven2/
GroupId: com.loopj.android
ArtifactId: android-async-http
Version: 1.4.9
Packaging: JAR or AAR
Gradle
repositories {
mavenCentral()
}
dependencies {
compile 'com.loopj.android:android-async-http:1.4.9'
}
development snapshots
https://oss.sonatype.org/content/repositories/snapshots/com/loopj/android/android-async-http/
Maven URL: https://oss.sonatype.org/content/repositories/snapshots/
GroupId: com.loopj.android
ArtifactId: android-async-http
Version: 1.5.0-SNAPSHOT
Packaging: JAR or AAR
Gradle
repositories {
maven {
url 'https://oss.sonatype.org/content/repositories/snapshots/'
}
}
dependencies {
compile 'com.loopj.android:android-async-http:1.5.0-SNAPSHOT'
}
Full details and documentation can be found on the project page here:
https://loopj.com/android-async-http/