Skip to content Skip to sidebar Skip to footer

Using Wikipedia Api For Fetching Random Articles My Android App

It keeps stopping and in summary it shows java.lang.reflect.InvoactonTargetException.... JSONException: No value..... M uusing this link https://en.wikipedia.org/w/api.php?format=j

Solution 1:

your approach to get data and parse json is very old try modern libraries like:

For Http requests:

Retrofit: https://square.github.io/retrofit/

Volley:https://developer.android.com/training/volley

and for json parsing:

Gson:https://github.com/google/gson

Moshi:https://github.com/square/moshi

Post a Comment for "Using Wikipedia Api For Fetching Random Articles My Android App"