build.gradle 中设置buildtype 的debugable:false即可 参考链接 https://blog.csdn.net/u012006926/article/details/54601881