Volley library is used in the Android app we are developing.However, the following error has occurred in Android9.
java.lang.NoClassDefFoundError:
at com.android.volley.toolbox.HurlStack.performRequest (HurlStack.java:108)
at com.android.volley.toolbox.BasicNetwork.performRequest (BasicNetwork.java:96)
at com.android.volley.NetworkDispatcher.run (NetworkDispatcher.java:112)
Since Apache HTTP Legacy library is not available on Android9, the following code is inserted in AndroidManifest.xml, but the error is not resolved.
<application
<uses-library
android:name="org.apache.http.legacy"
android:required="false" />
</application>
Could you tell me how to solve this problem?