Apache HTTP-Verbindung mit Android 6.0 (Marshmallow)

Gibt es eine Möglichkeit, die Apache-Bibliothek direkt in Gradle einzubinden, damit sie mit Android 6.0 funktioniert?

Ich habe versucht, die Bibliotheken so einzuschließen:

compile 'org.apache.httpcomponents:httpcore:4.4.1'
compile 'org.apache.httpcomponents:httpclient:4.5'

Und Android Studio konnte den folgenden Import nicht finden:

import org.apache.http.auth.AuthenticationException;
import org.apache.http.auth.Credentials;
import org.apache.http.auth.MalformedChallengeException;
import org.apache.http.auth.UsernamePasswordCredentials;
import org.apache.http.impl.auth.DigestScheme;

Antworten auf die Frage(4)

Ihre Antwort auf die Frage