最近我开发了一个只有3-4个屏幕的应用程序。单击注册按钮,注册屏幕将打开。
在发布模式下,应用程序在点击注册按钮时崩溃,我在那个里编写了启动注册屏幕的代码。
Intent intent = new Intent(activity, SignUpScreen.class); intent.putExtra(AppConstants.KEY_DATA, bundle); startActivity(intent);
相同的代码正在调试模式下运行。为了找到根本原因,我在发布模式下将debugable设置为true。结果令人惊讶,它开始工作了。
为什么以及在何处使用multiDexEnabled?