Questions tagged [android-debugging]

41 questions
304
votes
16 answers

Android app crashes when launched in debug mode

When I run in debug mode the app crashes, but when I just run it normally it works. I think the problem happens when the debugger is attached. Log: A/art: art/runtime/jdwp/jdwp_event.cc:661] Check failed: Thread::Current() != GetDebugThread()…
11
votes
7 answers

Good strategy to debug this?

Android (4.2.2) application developed in Java on Eclipse, I'm getting a crash but I can't figure out what in my code is causing it . . . The stack trace doesn't reference any of my own source code . . . Thread [<1> main] (Suspended (exception…
user316117
  • 7,971
  • 20
  • 83
  • 158
8
votes
4 answers

Android Studio 3.0 Logcat continuously showing messages and does not stop

When I start debugging my App in Android Studio 3.0 and open the Logcat, it displays so many messages and warnings, but the problem is, it never stops, even when the debugging is completed and the App is terminated, it still prints so many messages…
6
votes
0 answers

Debug what's returning -> Error required value missing at $

So I usually have this typical error messages when using a new API com.squareup.moshi.JsonDataException: Required value 'X' (JSON name 'x') missing at $ at com.squareup.moshi.internal.Util.missingProperty(Util.java:649) at…
Barrufet
  • 495
  • 1
  • 11
  • 33
6
votes
9 answers

How to overcome app not installed error when building from Android Studio 3.0?

For giving build for a debug Android app from Android Studio 3.0, it’s not installing in Mobile having Marshmallow and up (in Lollipop not tested). I have used many solutions from Stack overflow but it’s still not working. It’s always showing App…
Tanmay Sahoo
  • 471
  • 1
  • 6
  • 16
5
votes
5 answers

How to check the which activity is currently running while debugging the app

I am stuck with a project developed by someone else. Its a very big app. So for the purpose of understanding the code I want to know the flow, basically the name of the activity(the java file in the code) which is currently running in on my phone. I…
Isj
  • 2,020
  • 1
  • 14
  • 20
3
votes
2 answers

Shortcut to attach debugger in Android Studio

I know we can press Ctrl + F2 to detach the debugger but is there a shortcut to attach debugger in android studio?
3
votes
3 answers

Android debugger not being able to connect to the process (app)

I am using Android Studio 1.5 and currently working on a project. Whenever I am trying to debug or attach the debugger to the app I am working on to fix bugs, the debugger is NOT able to connect; therefore the app freezes on the android device. Note…
ngaspama
  • 371
  • 4
  • 10
2
votes
2 answers

android app stucks in waiting for debugger

Since I've installed a newer version of android studio i.e. Android Studio Flamingo | 2022.2.1 my application always waits for a debugger when executing debugging from android studio. I have tried a lower version of the Android Studio on the same PC…
VSB
  • 9,825
  • 16
  • 72
  • 145
2
votes
3 answers

build gdb and gdbserver for android

I'm working on 64 bit linux, need to build gdbserver for my aarch64 Android phone.There is prebuilt gdbserver in NDK, but it uses the python in NDK package, not using my system python, I can't install other python plugins. How to find which --target…
aj3423
  • 2,003
  • 3
  • 32
  • 70
2
votes
1 answer

How to find calling thread stack trace from breakpoint?

I have a Thread in my Android code and while debugging, I need to set a breakpoint inside the thread. However, once I am at the breakpoint inside the thread, I can't see the stacktrace of the calling thread. At this point, I usually need to set a…
2
votes
1 answer

How can I get my app to read external text file correctly? Only showing weird characters and diamonds

I'm working on my first app. Got everything set up and working correctly, except displaying a random quote from a text file. Clicking the button shows weird characters (diamonds, question marks, etc) and not the actual text except for the…
2
votes
0 answers

Unable to debug on remote android emulator with Visual Studio 2015 with Xamarin

My setup is a Macbook Pro running el Capitan and has the android sdk installed. I have a Windows 7 Pro installation running as a Parallels 11 guest with Visual Studio 2015 and the Xamarin plugin installed. Rather than running the android emulator…
Tony Dail
  • 417
  • 5
  • 6
2
votes
0 answers

Sqlite database insert query issue inside 'try catch' block

I am developing an app(requires person's location) that stores location coordinates against the consumerIds, I have created three fields,namely 1)key_Con_ID, 2) key_Latitude, 3)key_Longitude. The insert code is inside a 'try' and 'catch'. The 'try'…
Piu
  • 21
  • 2
2
votes
1 answer

Updated to Android Marshmallow -- now, Android Studio can't target device

When I go to run the application, my device no longer shows up in the chooser dialog. Developer options and USB debugging is still enabled no my phone, and I made sure the target SDK of my application is 23. Anyone else have this problem?
user2892437
  • 1,111
  • 1
  • 14
  • 22
1
2 3