package com.mysite.myapp;
import org.apache.http.client.HttpClient;
public class Whatever {
public void headBangingAgainstTheWallExample () {
HttpClient client = new DefaultHttpClient();
}
由此我得到了下面的编译时错误:
Cannot resolve symbol HttpClient
Android Studio SDK中不包括
HttpClient
吗?即使它不是,我也将它添加到我的Gradle构建中,如下所示: