最近学习 android 开发,已经写出来一个 APP ,大部分机器测试正常的,现在发现在 5.1.1 的系统上会导致闪退问题,自己装了个 5.1.1 的模拟器却没事。
APP最低设置的是4.0
dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) compile 'com.android.support:support-v4:21.0.2' compile 'com.android.support:appcompat-v7:22.2.0' compile files('libs/xUtils-2.6.14.jar') compile 'com.squareup.okhttp:okhttp:2.4.0' compile 'com.squareup.picasso:picasso:2.5.2' compile 'com.google.code.gson:gson:2.3.1' compile project(':pulltorefresh') compile 'com.github.JayFang1993:DropDownMenu:3e8620dc99' compile 'de.hdodenhof:circleimageview:1.3.0' }
这是需要的包,请问这种兼容问题应该从何入手?
找到原因了……是因为加固所用的产品不支持5.1,换了一家加固后就没问题了
最好买个Nexus 真机,用原生系统测试
真机打开,用eclipse调试看错误,
用实体机,然后看log信息