该应用程序仅在带有Marshmallow OS的签名apk中冻结

时间:2017-04-26 09:53:14

标签: android apk release android-6.0-marshmallow signed

我们的应用程序在所有设备上的调试模式下都运行良好,即使在Marshmallow设备上也是如此。但在生成签名的apk后,该应用程序冻结。 添加一些日志并关注它们之后,我们发现该应用程序在我们添加标签内容的行中冻结。

这是代码的片段

tabhost = (TabHost) view.findViewById(R.id.tabhost);
content = (FrameLayout) view.findViewById(R.id.content);
tabhost.setOnTabChangedListener(this);
tabhost.setup();

tabhost.addTab(tabhost.newTabSpec(res.getString(R.string.all))
                .setIndicator(res.getString(R.string.all))
                .setContent(new TabContentFactory() {
                    public View createTabContent(String tag) {
                        Log.e("TAG", tag); // The last line appears in the log
                        return listView;
                    }
                }));
        Log.e("TAG", "end"); // this log doesn't appear in log in the signed version.

listview不为null,我们确定

有什么建议吗?

任何帮助将不胜感激。

提前致谢

0 个答案:

没有答案