How to debug Unfortunatately [app name] has stopped

By May 18, 2018 No Comments

Most of the time it’s due to some cordova plugin issue. Identifying which one is the trick here.

We can do

adb logcat

This is going to return insanely verbose log output. When the app is about to fail and when it does, in that window lies the error.

You can do a quick search for fatal and the code around it should be the culprit. In my case there was only one fatal and it was pretty quick to find out the culprit.