티스토리 뷰

안드로이드 파이 9.0 버전에서 에러발생

java.lang.NoClassDefFoundError: Failed resolution of: Lorg/apache/http/message/BasicNameValuePair


<해결방법>

AndroidManifest.xml의 application태그에 아래 내용 추가

<uses-library android:name="org.apache.http.legacy" android:required="false"/>


<예시>

<application
android:allowBackup="false"
android:hardwareAccelerated="true"
android:icon="@drawable/icon"
android:label="@string/app_name">
<service android:name=".CheckInputService"/>

<uses-library android:name="org.apache.http.legacy" android:required="false"/>



<참조문서>

https://blog.naver.com/ponta9428/221362010662

https://www.cnblogs.com/renhui/p/9798335.html

공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/05   »
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 31
글 보관함