일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
- default profile
- 다이얼로그 복사
- 디렉터리 파일 검색
- 응답없음
- Pivotal
- Linux
- Visual Studio
- mysql 응답없음
- Before start of result set
- Vuetify
- explore.exe
- DIR함수
- MFC
- windows-build-tools
- default path
- componentDidUpdate
- MSB8020
- error
- mysql -u root -p
- 머신 러닝
- Numa Numa
- window terminal
- vue config
- useEffect
- 상단 메뉴 없애기
- tailwindcss
- startingDirectory
- MySQL
- error MSB8020
- 누마 누마
- Today
- Total
갓토리
안드로이드] HttpClient Gradle 오류해결 본문
안드로이드에서 HttpClient Gradle 을 추가해서 쓸려고하니까
compile (group: 'org.apache.httpcomponents' , name: 'httpmime' , version: '4.3.5') { exclude module: 'org.apache.httpcomponents:httpclient'}
2 warnings 가 떴다.
내용은
WARNING: Dependency org.apache.httpcomponents:httpclient:4.3.5 is ignored for debug as it may be conflicting with the internal version provided by Android.
In case of problem, please repackage it with jarjar to change the class packages
WARNING: Dependency org.apache.httpcomponents:httpclient:4.3.5 is ignored for release as it may be conflicting with the internal version provided by Android.
In case of problem, please repackage it with jarjar to change the class packages
무시하고 하려고하니까 HttpClient 사용이 안되었다.
그래서 이것저것 해보니까
compileSdkVersion, buildToolsVersion, targetSdkVersion
그리고 dependencies 의 컴파일 appcompat 버전을 바꿔줘야 했다.
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.1"
defaultConfig {
applicationId "com.example.wook.w0916_a"
minSdkVersion 15
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'])
compile 'com.android.support:appcompat-v7:23.0.1'
compile (group: 'org.apache.httpcomponents' , name: 'httpmime' , version: '4.3.5') { exclude module: 'org.apache.httpcomponents:httpclient'}
}
이거를
apply plugin: 'com.android.application'
android {
compileSdkVersion 22
buildToolsVersion "22.0.1"
defaultConfig {
applicationId "com.example.wook.w0916_a"
minSdkVersion 15
targetSdkVersion 22
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:22.1.1'
compile (group: 'org.apache.httpcomponents' , name: 'httpmime' , version: '4.3.5') { exclude module: 'org.apache.httpcomponents:httpclient'}
}
로 바꿔주었다.
'IT > 프로그래밍' 카테고리의 다른 글
Spring] 초보자들이 겪을 수 있는 에러 (1) | 2015.10.25 |
---|---|
안드로이드] SQLite (0) | 2015.09.24 |
Java, Swing] getOwner 이용 부모프레임 조정 (0) | 2015.06.27 |
MFC] 마우스 이벤트 중복 예약 방지 (0) | 2015.06.11 |
MFC] Dialog 전체화면 만들기 (0) | 2015.06.10 |