Conexão HTTP Apache com Android 6.0 (Marshmallow)
Existe alguma maneira de incluir a biblioteca Apache diretamente no Gradle para fazê-lo funcionar com o Android 6.0?
Eu tentei incluir as bibliotecas assim:
compile 'org.apache.httpcomponents:httpcore:4.4.1'
compile 'org.apache.httpcomponents:httpclient:4.5'
E o Android Studio não conseguiu encontrar a seguinte importação:
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;