0

Recently I developed app with just 3-4 screens. On click Signup button, Signup screen will get open.

In release mode App was crashing on click of Signup button where I have written code to start Signup screen.

 Intent intent = new Intent(activity, SignUpScreen.class);
    intent.putExtra(AppConstants.KEY_DATA, bundle);
    startActivity(intent);

Same code is running in debug mode. To find root cause I set debuggable true in release mode. Result was surprising, it started working.

After spending time i got solution that I need to set multiDexEnabled true in build.gradle. After doing that app started working in release mode with debuggable false.

Question is, how does multiDexEnabled help to run app in release mode?

Why and where to use multiDexEnabled?

Rohan Patel
  • 1,758
  • 2
  • 21
  • 38

0 Answers0