I use Retrofit 2.8.1 to make a network call. When I disable my network connection, the app crashes. But strangely I've got nothing about stack trace on logcat. Just says:
E/AndroidRunTime: FATAL EXEPTION: main
Process: ir.kaaveh.recyclerviewmvvm, PID: 31179
When I surround my network call with try/catch and use e.printStackTrace(), I find out that:
java.net.UnknownHostException: Unable to resolve host "www.omdbapi.com": No address associated with hostname
Why Android studio don't show me stack trace in this case? Usually, it tells you which line causes throw exception. You can find the full source code here.