相关疑难解决方法(0)

与Android 6.0的Apache HTTP连接(Marshmallow)

有没有办法直接在Gradle中包含Apache库以使其与Android 6.0一起使用?

我试图包括这样的库:

compile 'org.apache.httpcomponents:httpcore:4.4.1'
compile 'org.apache.httpcomponents:httpclient:4.5'
Run Code Online (Sandbox Code Playgroud)

并且Android Studio无法找到以下导入:

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;
Run Code Online (Sandbox Code Playgroud)

android apache-httpclient-4.x android-gradle-plugin android-6.0-marshmallow

29
推荐指数
1
解决办法
2万
查看次数