是否有任何方法可以直接在Gradle中包含Apache庫以使其與Android 6.0一起使用?與Android 6.0(棉花糖)的Apache HTTP連接
我試着包括這樣的庫:
compile 'org.apache.httpcomponents:httpcore:4.4.1'
compile 'org.apache.httpcomponents:httpclient:4.5'
和Android工作室不能設法找到以下導入:
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;
嘗試清理並重建 –