IT

Android Studio 내에서 LogCat 창 복원

lottoking 2020. 5. 27. 07:55
반응형

Android Studio 내에서 LogCat 창 복원


최근에 Android Studio v0.1.1을 사용하기 시작했으며 LogCat을 찾을 수없는 것 같습니다. 사라 졌습니까? 그렇지 않은 경우 어떻게 활성화 할 수 있습니까?

그것이 사라지면 비슷한 방식으로 내 앱 동작을 기록하고 주로 충돌하는 방법이 있습니까?


내 설치 0.1.1에서 여전히 logcat을 찾을 수 있다고 생각합니다.

Windows에서 + 또는 Mac에서 Alt+ 6눌러보십시오 .CMD6


숨겨져 있는지 확인하십시오 ... Alt+ 6사용 하여 창을 열고 '로그 캣보기 복원'아래 표시된 버튼을 클릭하십시오

IDE 내에서 logcat에 액세스


Alt + 6을 눌러 표시 할 수 있습니다

또는...

여기를 클릭하십시오!


도구-> 안드로이드-> 안드로이드 장치 모니터

별도의 창이 열립니다


에서 안드로이드 스튜디오 3.4 , 경우에있는 로그 캣이 나타나지 않는다 View->ToolWindows->Logcat(이 경우 Alt+6또는 CMD+6하지 작업도 않습니다)에 logact 창을 얻을 수있는 방법입니다 :

  1. File->Profile or debug APK (APK 선택)
  2. 새 창을 선택하거나 현재 창을 사용하십시오.
  3. Logcat은 이제 메뉴 ( View->ToolWindows->Logcat) Alt+6또는CMD+6

별도의 터미널을 열고 logcat으로 adb를 시작하십시오. 내 (리눅스) 시스템에서;

~ / android-studio / sdk / 플랫폼 도구 / adb logcat


파티에 조금 늦었지만 몇 년이 걸리고 Studio의 새 버전이되었습니다.

오늘날 버그가 발생하면 logcat이 표시되지 않으므로이 문제를 해결하려면 다음 단계를 수행해야합니다.

  • 메뉴-> 빌드-> 프로젝트 만들기
  • 당신의 settings.gradle 모든 동기화 주석 처리합니다.
  • 모든 것을 주석 해제하고 다시 동기화하십시오.
  • 메뉴-> 빌드-> 프로젝트 만들기
  • 프로젝트 빌드가 완료되면 Studio가 준비됩니다.

이 문제와 관련하여 몇 가지 다른 버그가 발생했습니다.이 시나리오는 대부분의 경우에 적용됩니다.


AndroidStudio 메뉴에서 View \ Tool Windows \ Android를 클릭하십시오.


방법 하나 :

logcat에서 bin 아이콘을 사용할 수 있습니다 여기에 이미지 설명을 입력하십시오

방법 2 : 점심 식사 후 logcat을 지울 수 있습니다 . 구성 편집> 기타

점심 전에 로그 지우기를 확인하십시오.

여기에 이미지 설명을 입력하십시오


Android Studio 2.3.2에서는 하단의 "Android 모니터"패널을 클릭해야하며 "logcat"은이 패널의 탭입니다. 첨부 파일을 참조.

이 패널이 없으면 기본 메뉴로 이동 한 다음보기-> 도구 모음 / 도구 버튼 / 상태 표시 줄 / 탐색 모음으로 이동해야합니다

여기에 이미지 설명을 입력하십시오


"부동 모드"를 선택한 다음 "도커 모드"를 선택하십시오. 그것은 나를 위해 일했다!


In my case the window was also missing and "View -> ToolWindows -> Logcat (Alt + 6)" did not even exist. Pressing ALT+6 also had absolutely no effect whatsoever.

I fixed it this way:

  1. connect a device
  2. start ADB via Terminal ("> adb usb")
  3. stop it again (ctrl + c)
  4. close the Terminal window in the bottom left window next to the Event Log (via the red X)

After closing the terminal the Logcat window appeared in the tab list and the menu entry appeared in the "View -> ToolWindows" category.

여기에 이미지 설명을 입력하십시오


Apparantly, when logcat is opened and Android Studio is switched to fullscreen mode and back, the logcat window is nowwhere to be found.

Solution:

Restart Android Studio.


Search Android Monitor tab bottom of android studio screen. Click on it. It will display a window and there is a tab call logcat. If you can't see Android monitor tab, click Alt+G.


for me the device selection bar (or whatever it's actually called) in logcat tab doesn't show, to resolve this I had to move logcat to some other position (left/right) and move it back


Simply go to view option then select tool Windows then select whatever you want


If all of the above methods does not work then try the below mechanism. Sometimes, the android studio does not show logcat options because of the project you select is not an android project. If you want to debug an APK, create an empty android project then it will start showing the logcat option.


Try going to Tools->Android->Enable ADB Integration

In my case it got automagically disabled


In my case, I see the window, but no messages in it. Only restart (studio version 1.5.1) brought the messages back.


I hope you have installed the required drivers for debugging android programs on your machine. If that is the case, when you run an application from android studio in an actual device, it will pop up a message asking to enable logcat. If you have disabled that option, then you can enable the logcat view from Window menu -> Show view -> Logcat. Next time when you run your application on actual device or in an emulator, you can see the logcat is active.

If you are not able to view it with the above solution, you can view the logcat from command line by typing

adb logcat

You can view more information from here http://developer.android.com/tools/help/logcat.html

참고 URL : https://stackoverflow.com/questions/16817566/restore-logcat-window-within-android-studio

반응형