I\'m working on an app on Android. I\'m using httpcore 4.3.3. I get this when I try to use ContentType.parse(string)
java.lang.NoSuchFieldError:
Note : If you are using both apache httpmime and retrofit simultaneously Use apache httpmime older version.
(eg : in my case i used this to upload a image on server and also to get the content lenghth/image size)
This his an older version (not so old) or prev version, You should implement same old version for both.
implementation 'com.squareup.retrofit2:retrofit:2.0.2' implementation 'org.apache.httpcomponents:httpmime:4.3.6'
This his an new version of retrofit, You should use old version apache httpmime.
implementation 'com.squareup.retrofit2:retrofit:2.3.0' implementation 'org.apache.httpcomponents:httpmime:4.3.6'
Thank You so much, If u loved my solution plz voteup for me.