Android Studio 3.1.3 中缺少 LogCat [英] LogCat Missing from Android Studio 3.1.3

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

问题描述

我最近在我的笔记本电脑上安装了 Android Studio 3.1.3,以便开始学习 android/移动开发(我对这一切还是个新手).不过似乎缺少 LogCat 选项(请参阅下图)

I recently installed Android Studio 3.1.3 on my laptop in order to start learning android/mobile development (I am still new to all of this). The LogCat option seems to be missing though (refer to images below)

为了解决这个问题,我试图做什么:

What I tried to do in order to fix the problem:

-卸载并重新安装 android studio(同时更新它...)

-uninstalling and reinstalling android studio (along with updating it...)

-研究问题(没有有用的结果,因为所有解决方案都是按alt-6或转到查看->工具窗口)

-researching the problem (no useful results as all the solutions were to press alt-6 or go to View->Tool Windows)

如果有人知道如何解决这个问题,那将是一个巨大的帮助/救济.提前致谢.

It would be a huge help/relief if someone knows how to solve this problem. Thanks in advance.

推荐答案

我知道这是一个老问题,但我至少遇到过两次这个问题,所以它可能对某人有所帮助.

I know it is an old question, but I encountered this problem at least twice so it might help someone.

问题似乎出在您正在查看的项目的路径上.它应该指向包含项目中app"和gradle"文件夹的文件夹.

The problem seems to be the path of the project you're looking at. It should be pointing to the folder containing the 'app' and 'gradle' folders inside your project.

  1. 转到文件 > 打开
  2. 选择项目中包含app"文件夹的文件夹
  3. 按打开"

如果您看到类似的内容,您现在可以使用 alt-6 或 View->Tool Windows 打开 Logcat 窗口.

If you see something like this you can now probably open the Logcat window with alt-6 or View->Tool Windows.

请注意,由于某种原因,它起初对我不起作用,直到我打开 app 文件夹,运行构建,然后打开包含 app 文件夹的文件夹.

Note that for some reason, it didn't work for me at first until I opened the app folder, run a build and then opened the folder containing the app folder.

这篇关于Android Studio 3.1.3 中缺少 LogCat的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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