Are the code assertions really run in Android for the release builds? Assertion failures are not reported by my code. It leads to crashes. Is there a way to turn on Assertions for release mode?
Are the code assertions really run in Android for the release builds? Assertion failures
Share
I think using
junit.framework.Assertinstead of the Javaassertkeyword (which gets stripped by Dalvik) should do the trick.If you insist on using the
assertkeyword, there are various workarounds.