Android Studio,我的APP未在LogCat中显示出来 [英] Android Studio, My APP not showing in LogCat out put

查看:1046
本文介绍了Android Studio,我的APP未在LogCat中显示出来的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在以调试模式运行我的应用程序.但是它没有显示Logcat.

I am running my app in debug mode. But it is not showing the Logcat.

logcat正在工作并打印大量垃圾.在连接的设备旁边的顶部说.没有可调试的应用程序.怎么来的?

The logcat is working and prints lots of rubbish. At the top next to the device connected it says. No Debuggable Application. how came ?

推荐答案

转到您的 build.gradle 并进行设置 可疑 真实 根据您想要的构建类型. 这是一个示例

Go to your build.gradle and set debuggable true on the build type you want. Here's an example

android {

    //...

    buildTypes {
        debug {
            debuggable true
        }
        customDebuggableBuildType {
            debuggable true
        }
        release {
            debuggable false
        }
    }
}

这里是我从哪里得到答案的参考: https://stackoverflow.com/a/34135791/10004454

Here's a reference to where I got the answer from : https://stackoverflow.com/a/34135791/10004454

这篇关于Android Studio,我的APP未在LogCat中显示出来的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆