解决方案 在app的gradle文件中: 相应的 Application 入口 的 onCreate 方法中: 参考博客:http://blog.csdn.net/u010381752/article/details/50715854