【问题标题】:aLogcat not displaying stack traces of android app on samsung galaxyaLogcat 未在三星 Galaxy 上显示 android 应用程序的堆栈跟踪
【发布时间】:2016-09-17 15:14:28
【问题描述】:

我已将日志消息放入我的 android 应用程序并创建了 APK 文件。 然后我在三星 Galaxy 设备上安装了我的 android 应用程序。 我还安装了一个Logcat。 当我在三星上运行我的应用程序并转到 aLogcat 时,它没有显示日志消息。我已经检查了 aLogcat 中的过滤器和设置。 它设置为“详细”

哪位高手可以帮帮我

        Log.i(TAG,"entering onCreate");

【问题讨论】:

    标签: android debugging logcat android-logcat android-debug


    【解决方案1】:

    要显示其他应用程序的日志,alogcat 必须具有 root/超级用户权限。所以授予 alogcat root 权限并阅读日志

    【讨论】:

    • 当我在三星手机的终端模拟器应用程序中执行以下命令时,我找不到设备
    • adb shell pm grant android.permission.READ_LOGS。我试图将手机连接到笔记本电脑。但是当我在命令提示符(adk install.../../adb)中执行 adb devices 命令时,它显示设备列表但没有显示设备。
    猜你喜欢
    • 2018-01-10
    • 2015-09-11
    • 2017-08-09
    • 2010-09-13
    • 1970-01-01
    • 2019-04-15
    • 2014-10-10
    • 1970-01-01
    • 2020-07-03
    相关资源
    最近更新 更多