Enable LogCat on Release Build in Android Studio

前端 未结 3 1293
臣服心动
臣服心动 2020-12-13 03:44

By default, when I change Build Variants to release I don\'t get any Logs on the logcat, but I do need to read release logs of my app, how can I en

3条回答
  •  长情又很酷
    2020-12-13 04:08

    I do not like the other solution because then you are not testing how the App really is deployed.

    A better solution is to open the Android Device Monitor where you can see the logs even when in release configuration with debuggable=false.

    Find it here:

    Tools -> Android -> Android Device Monitor

    Update:
    Android Device Monitor was removed in Android Studio 3.2. However, it is still present in SDK, and you can use it to see the logs (it is located in $ANDROID_SKD/tools/)

提交回复
热议问题