How do I debug Android crashes
Hi, I have a weird crash occuring on an app that worked prior to Mobile SDK 1.2.0 but not with 1.2.0 or later. What is the correct methodology to determine what is causing the crashes?
I have pastied it here in case anyone with more knowledge can help me… http://www.pastie.org/920852
2 Answers
-
Accepted Answer
Gregor in this particular case, it looks like you changed the case on your appid. It should be com.securitgroup.ireal Java is case sensitive. Did you happen to regenerate the project and move over source?
RACE] class name (com/securitgroup/ireal/IrealActivity) does not match path (com/securitgroup/iReal/IrealActivity.class) [TRACE] ...while parsing com/securitgroup/iReal/IrealActivity.class [TRACE] ...while processing com/securitgroup/iReal/IrealActivity.class [TRACE]
-
Debugging android is frustrating, but it's also not rocket surgery either. You need to put Ti.API.info("001"); at the beginning of your app, then 002, then 003, or whatever, throughout the loading portion of your app, and keep running it until you figure out the last line that got executed.
It's a pain, but once you locate the source of the error, it's usually easy to fix.