代码之家  ›  专栏  ›  技术社区  ›  Rohan Patel

调试和发布模式中是否存在启用多索引的行为差异?[副本]

  •  0
  • Rohan Patel  · 技术社区  · 6 年前

    最近我开发了一个只有3-4个屏幕的应用程序。单击注册按钮,注册屏幕将打开。

    在发布模式下,应用程序在点击注册按钮时崩溃,我在那个里编写了启动注册屏幕的代码。

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

    相同的代码正在调试模式下运行。为了找到根本原因,我在发布模式下将debugable设置为true。结果令人惊讶,它开始工作了。

    为什么以及在何处使用multiDexEnabled?

    0 回复  |  直到 6 年前