私のアプリにクラスJSONParserをコピーするだけです。エラー:HttpGet、HttpClient、HttpResponseというシンボルを解決できません。 Gradleのファイル:Androidスタジオ1.5のシンボルHttpGet、HttpClient、HttpResponceを解決できません
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.2"
useLibrary 'org.apache.http.legacy'
defaultConfig {
applicationId "com.chifco.pfe.myapplication"
minSdkVersion 16
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.2.1'
compile 'com.android.support:design:23.2.1'
compile 'org.apache.httpcomponents:httpcore:4.4.1'
compile 'org.apache.httpcomponents:httpclient:4.5'
}
これらのクラスをコメントしてプロジェクトをビルドし、コメントを外してインポートを確認してください –