Android Question App works in Debug, crashes in Release

jpvniekerk

Active Member
Licensed User
Longtime User
I have a (quite big - ~5,000 lines) app. Everything works fine in debug mode, but when I install in Release mode, the app crashes without any error messages. All I get is a notice "Unfortunately, 'app' has stopped.

I use the following libraries:
  1. Core (6.00)
  2. Dialogs (2.80)
  3. Phone (2.28)
  4. Reflection (2.40)
  5. SQL (1.30)
  6. StringUtils (1.02)
Device is Samsung Galaxy Note 4 running Android 6.0.1

The manifest is as follows:
B4X:
AddManifestText(
<uses-sdk android:minSdkVersion="5"  android:targetSdkVersion="19"/>
<supports-screens android:largeScreens="true"
    android:normalScreens="true"
    android:smallScreens="true"
    android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")

Unfortunately the app is too big (and proprietary) and I cannot upload it here.

Any help getting this resolved will be greatly appreciated!
 

fixit30

Active Member
Licensed User
Longtime User
You can either try using USB debugging in release mode to try and capture the error, or use the Starter Service to write the exception to a text file in File.DirRootExternal

This should give you a hint on where to start looking for your bug!
 
Upvote 0

jpvniekerk

Active Member
Licensed User
Longtime User
I've turned on USB debugging on the device and plugged the USB cable in.
I still don't see any error messages.
I'm not sure I do this correctly. Is there a tutorial somewhere that can help to set up USB debugging correctly?
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…