Questions tagged [logcat]

Logcat is the command to view and filter information from the Android logging system, but more often the name is used as a synonym for the Android logging system itself.

Logcat is the command to view and filter information from the Android logging system, but more often the name is used as a synonym for the Android logging system itself.

Logging information from Logcat is vital for diagnosing problems and debugging Android apps.

To retrieve information from logcat manually the Android Debug Bridge (ADB) command line tool is used. Alternatively Eclipse with Android Development Tools (ADT) plug-in provides a logcat view in most perspectives, automatically retrieving logging information.

Detailed information on the logcat command is available at the Android Developers documentation.

2313 questions
0
votes
0 answers

My android game build is freezing every 2 seconds on my mobile phone

My android game in some mobile phone (mate 10) freezing every 2 seconds. I debug it from LogCat. Can anyone has an idea? LogCat: 2023.05.24 20:55:19.118 13190 13579 Debug PlayerBase::stop() from IPlayer 2023.05.24 20:55:19.119 13190 13579 Debug…
0
votes
0 answers

Android Logcat does not output logs unless I restart it

I'm trying to use the new Android Logger for the first time. My TestApplication is: package com.example.test import android.app.Application import android.util.Log import timber.log.Timber class TestApplication : Application() { override fun…
MW2023
  • 183
  • 3
  • 12
0
votes
0 answers

Android Studio could not remove dir

When I try to run my application in android studio emulator, I get an error as follows: studio.deploy install_server-09f4021c E Could not remove dir '/data/data/com.example.myapplication/code_cache/.ll/': No such file or…
0
votes
0 answers

I have a problem while running the kivy python application error in charset_normalize er and cchardet

This is part of my code from kivy.app import App from kivy.base import Builder from kivy.uix.textinput import TextInput from kivy.uix.screenmanager import Screen from kivy.core.window import Window from kivy.core.audio import SoundLoader from…
saba
  • 1
0
votes
0 answers

Android Studio Kotlin Log.d message not showing up

enter image description hereThe compiler is showing no errors but the Log.d message it is not showing up( Log class imported) This is my error coming up during doing the official app development course in Koltin from developer.android.com
0
votes
0 answers

How to filter Android adb command line logcat using multiple keywords from json output?

So, here is a part of logcat output: ... 04-02 08:11:01 100 105 I ReactNativeJS: {userInfo: 04-02 08:11:01 100 105 I ReactNativeJS: {id:123, 04-02 08:11:01 100 105 I ReactNativeJS: user_id:456, 04-02 08:11:01 100 105 I ReactNativeJS: …
0
votes
0 answers

Collect full device logs from an Android APP

I am developing an Android App that I am targeting for Android 13 or higher. In the APP I am performing continuous updates and for each update, I want to collect logs of the full device including update_engine's logs, so in case any update fails I…
Bajrang Hudda
  • 3,028
  • 1
  • 36
  • 63
0
votes
1 answer

Unable to open log device '/dev/log/main': No such file or directory

i'm using avd android 4.2 armeabi-v7a I want using logcat. but avd is not have /dev/log what can i do.. OS : Apple M2 pro Ventura 13.2.1z Emulator : Andorid Studio 2022.1.1 - avd(android 4.2 armeabi-v7a) android 4.1 armabi-v7a has…
nanglam
  • 3
  • 2
0
votes
1 answer

not getting options like choosing info in android studio

hi i have been using android studio for some time now and i am not able to acces logcat properly as i am not able to choose info or verbose etc not getting option to do so can anyone help to solve this problem ? so that logcat can work properly i…
0
votes
0 answers

Android | How i can save logcat info in list

I want read logcat in my test: fun threadOperation() { val processBuilder = ProcessBuilder(arrayListOf("/bin/sh", "-c", "logcat")) var process: Process? = null try { process = processBuilder.start() …
Red Cape
  • 13
  • 3
0
votes
0 answers

I keep getting this error when run my code android.view.InflateException: Binary XML file line #43 in com.example.projectmpa:layout/activity_hamstring

I am new to Android Studio and am currently working on creating my first app. Unfortunately, I am encountering an issue that I am struggling to resolve.P.S"First time asking in Stack" this is the Layout file. the error that i mostly get is related…
0
votes
0 answers

Expo react-native Android APK bundle stuck on loading screen

I got an internal distribution build for the Expo react-native app I'm developing by running: eas build -p android --profile preview The build completes successfully and also I can run expo start and everything works fine. However, when I install…
izzio
  • 1
  • 1
0
votes
1 answer

Custom logging messages hard to distinguish from other logcat messages

In Android Studio's logcat window it is hard to distinguish my custom log messages (Log.d, Log.e...) from the other log messages. This still happens when setting package:mine. See the image below:
S. Gissel
  • 1,788
  • 2
  • 15
  • 32
0
votes
0 answers

Apk crashes in AVD

I'm just getting started with android studio. To get familliar with the environment I installed a few apps in the avd and some of these aren't working. Tiktok is one of these. This app starts then immediately crashes. The logcat output is about 30k…
motrait
  • 9
  • 2
0
votes
1 answer

onSaveInstanceState does not have data persistence when phone is flipped

I have been scouring through the stackoverflow questions about this issue but I have yet to find the reason why even though the onSaveInstanceState was called when I view the logcat I still could not get the bundled information that was saved during…
Wei
  • 1