Questions tagged [android-debug]

The Android SDK provides most of the tools that you need to debug your applications. This tag covers debugging concerns when developing Android applications.

The Android SDK provides most of the tools that you need to debug your applications. This tag covers debugging concerns when developing Android applications.

More Info

426 questions
16
votes
5 answers

Android Studio: "Frame is not available"?

I am working with Google's Leanback library for Android TV and I am trying to figure out how to best listen for the buttons on the remote control (especially the ones that are not captured by the MediaSession). For that reason I have a break point…
david.mihola
  • 12,062
  • 8
  • 49
  • 73
15
votes
6 answers

Google Maps works fine on Android but I still get an error "Could not find class 'maps.i.k', referenced from method maps.z.ag.a"

I got Google Maps Android API v2 to work perfectly on my Android Application by downloading the library, adding it to workspace, then referencing it as a library. But I still get this error as soon as the activity containing the Map Fragment…
14
votes
1 answer

android emulator sdk 10 api 29 won't start after remount and reboot

I'm running into strange behaviour when trying to remount device with SDK 10 and API 29, after the remount the emulator hang (device offline) To reproduce: OS: MacOs Using android studio define new device: pixel 2 (or pixel 3/nexus 5), Android 10.0…
Eyal.C
  • 141
  • 1
  • 5
13
votes
2 answers

Debug with Visual Studio 2015 on Android stop working

I use Visual Studio 2015 RC to build and debug Android Apps on my Samsung Galaxy S5. Today I updated from android 4.3 to 5.0 and debugging stopped working. Here is the message I am getting: Anyone knows how to solve this ?
piotrek
  • 1,333
  • 4
  • 17
  • 35
13
votes
3 answers

Android display Logcat in TextView

The app I'm building have root-access to Android. I wish to show Logcat log information in one of the TextView so it can show up on the screen while i'm debugging. Can someone give me some ideas which library/function i can call to access those…
WorldWind
  • 311
  • 1
  • 5
  • 17
13
votes
4 answers

Can I trigger Android's built-in bug capture functionality from my app?

Android has, from ICS onwards (I think) provided the ability for a user to capture the system state, and then send or share the captured data with whomever they wish. See What does it mean with bug report captured in android tablet? The captured…
Graham Borland
  • 60,055
  • 21
  • 138
  • 179
13
votes
4 answers

How to debug android UI styles

Please do you know about any tool which would allow me to debug Android UI in the way web debug tools work? I mean view which style is applied to each particular View, or also I would like to be able to see some inheritance tree etc..Do you guys…
simekadam
  • 7,334
  • 11
  • 56
  • 79
12
votes
2 answers

Android Studio static = libcore.io.Posix ENOENT exception

I am trying to run my app on a emulator. It used to work but now it does not load properly. The debug error I get is: static = libcore.io.Posix Exception = {android.system.ErrnoException@3564} When I right click on the Exception line and Copy…
Bill_NZ
  • 421
  • 4
  • 11
12
votes
1 answer

What does it mean with bug report captured in android tablet?

I was playing around with my tablet and testing my program, when there was a notification that said bug report captured and whether I would like to share it. I had not seen this message before so I clicked Yes, and then I clicked OK on the warning…
user13267
  • 6,871
  • 28
  • 80
  • 138
11
votes
3 answers

Logcat is being "spammed", resulting in "Too much output to process"

Whenever I connect my Samsung Galaxy S5 (running Android 4.4.2) to my computer, the Logcat in Android Studio starts being "spammed" by the same message multiple times ~1600 times per second, resulting in the message "Too much output to process"…
Magnus
  • 17,157
  • 19
  • 104
  • 189
10
votes
3 answers

Forever "Waiting for application to start debug server" when debugging a WatchFace

I'm learning to develop watch faces under WearOS, with Android Studio 3.1.4. I have issues with the debugger. It seems I can't run the application directly in debug mode (Shift-F9). If I do so, I systematically get the following message, despite…
cyphics
  • 412
  • 4
  • 17
10
votes
2 answers

Can't inspect android app on chrome remote debug

I was trying to use Stetho to debug my application and followed the steps here https://developers.google.com/web/tools/chrome-devtools/remote-debugging to enable chrome remote debug, but I can't inspect my app. The device is recognized, but no…
Erik
  • 1,311
  • 1
  • 11
  • 17
10
votes
0 answers

Find out what line of code my app is currently running in Android Studio's debug mode

When I'm running an app in debug mode with Android Studio, is there a way that I can find out what line of code is currently being processed? By this I mean, is there a tool that works kind of like setting a breakpoint, but you don't have to set a…
10
votes
1 answer

Separate XML line for debug or release mode in android manifest

My Android manifest uses different values when debugging and when releasing. What's the easiest way to differentiate a value for each build type? When debug:
ericosg
  • 4,926
  • 4
  • 37
  • 59
9
votes
1 answer

Why wait for debugger and then attach debugger to process?

What is the significance of android.os.Debug.waitForDebugger(); I am aware that we [sometimes] need to use this function in order to debug a Service, but my question is: WHY do we have to do this? Why does this method exist? What other purpose…
1
2
3
28 29