简体   繁体   English

调试 Android 应用发布版本

[英]Debugging release version of Android app

I have an app that works fine in debug mode, but when I create a signed apk and install it on the same phone, some features do not work.我有一个在调试模式下运行良好的应用程序,但是当我创建一个签名的 apk 并将其安装在同一部手机上时,某些功能不起作用。

Is there a way to get console messages from the release version?有没有办法从发布版本中获取控制台消息?

Thanks in advance.提前致谢。

@Matt If it is working fine in your simulator while running in debug mode then obviously it should work with your apk in mobile device as well. @Matt 如果在调试模式下运行时它在模拟器中运行良好,那么显然它也应该在移动设备中与您的 apk 一起使用。 Actually elaborate your question.实际上详细说明你的问题。

In you release gradle build change to this在您将 gradle build 更改发布到此

  release {
        multiDexEnabled true
        minifyEnabled false
        shrinkResources false
        proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
    }
    debug {
        multiDexEnabled true
        minifyEnabled false
        shrinkResources false
    }

hope this is helpful .希望这是有帮助的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM