{"id":225,"date":"2020-02-27T18:16:29","date_gmt":"2020-02-27T18:16:29","guid":{"rendered":"http:\/\/rat32.com\/rat32\/?p=225"},"modified":"2020-02-27T18:26:04","modified_gmt":"2020-02-27T18:26:04","slug":"how-to-solve-java-lang-noclassdeffounderror-failed-resolution-of-lorg-apache-http-util-bytearraybuffer","status":"publish","type":"post","link":"https:\/\/rat32.com\/rat32\/2020\/02\/27\/how-to-solve-java-lang-noclassdeffounderror-failed-resolution-of-lorg-apache-http-util-bytearraybuffer\/","title":{"rendered":"How to solve java.lang.NoClassDefFoundError: Failed resolution of: Lorg\/apache\/http\/util\/ByteArrayBuffer"},"content":{"rendered":"<p>To solve the this problem just put the following code[<strong>&lt;uses-library android:name=&#8221;org.apache.http.legacy&#8221; android:required=&#8221;false&#8221;\/&gt;<\/strong>] below <application> tag on the manifiest tag. For eg:<\/p>\n<p class=\"lang:xhtml decode:true \" >&lt;application<br \/>\nandroid:icon=&#8221;@drawable\/icon&#8221;<br \/>\n         &#8230;&#8230;<br \/>\n        android:theme=&#8221;@style\/AppTheme.NoActionBar&#8221;&gt;<\/p>\n<p>        <strong>&lt;uses-library android:name=&#8221;org.apache.http.legacy&#8221; android:required=&#8221;false&#8221;\/&gt;<\/strong><\/p>\n<p>This problem is caused by targeting target Android 9 and above versions of android. Thanks.<\/p>\n<!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"<p>To solve the this problem just put the following code[&lt;uses-library android:name=&#8221;org.apache.http.legacy&#8221; android:required=&#8221;false&#8221;\/&gt;] below tag on the manifiest tag. For eg: &lt;application android:icon=&#8221;@drawable\/icon&#8221; &#8230;&#8230; android:theme=&#8221;@style\/AppTheme.NoActionBar&#8221;&gt; &lt;uses-library android:name=&#8221;org.apache.http.legacy&#8221; android:required=&#8221;false&#8221;\/&gt; This problem is caused by targeting target&#46;&#46;&#46;<!-- AddThis Advanced Settings generic via filter on get_the_excerpt --><!-- AddThis Share Buttons generic via filter on get_the_excerpt --><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[73,7],"tags":[142,154,152,155,153],"class_list":["post-225","post","type-post","status-publish","format-standard","hentry","category-android","category-how-to","tag-android","tag-bytearraybuffer","tag-java","tag-lorg-apache-http-util-bytearraybuffer","tag-noclassdeffounderror"],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/rat32.com\/rat32\/wp-json\/wp\/v2\/posts\/225"}],"collection":[{"href":"https:\/\/rat32.com\/rat32\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rat32.com\/rat32\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rat32.com\/rat32\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rat32.com\/rat32\/wp-json\/wp\/v2\/comments?post=225"}],"version-history":[{"count":3,"href":"https:\/\/rat32.com\/rat32\/wp-json\/wp\/v2\/posts\/225\/revisions"}],"predecessor-version":[{"id":228,"href":"https:\/\/rat32.com\/rat32\/wp-json\/wp\/v2\/posts\/225\/revisions\/228"}],"wp:attachment":[{"href":"https:\/\/rat32.com\/rat32\/wp-json\/wp\/v2\/media?parent=225"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rat32.com\/rat32\/wp-json\/wp\/v2\/categories?post=225"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rat32.com\/rat32\/wp-json\/wp\/v2\/tags?post=225"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}