Water debugging Android 11

This was indirectly logged last week as bugs://85159, but I wanted to start a new thread to so that I can help provide any info I need to on this. I’ve been having serious issues getting the debugger to connect for a long time (probably 10-20% success rate) but now I seem to be entirely unable to connect the debugger on my last 20-30 attempts. The only change I can think of is that I updated my phone that I’m attempted to debug on (a Pixel 3, updated to the latest Android 11 patch).

Is there anything I can do to test to provide more info on this and get it fixed quicker? I really need this to be fixed.


does this fail for device and emulators, or just for the real device? in any case, I’ll make sure this gets top priority tomorrow.

1 Like

Both. I seem to have more luck with one than the other at different times, but both fail frequently. I should also note, it appears to be something specific to my project, as I am able to debug other projects without issue. The project that I have issues with is a multi-project solution (an Android project, a Test project, and a shared project with code used by each) for a multidexed Android app, targeting Android api 29.



We also can’t reproduce the issue. Is it possible to get a testcase, maybe simplified version of your project, reproducing the problem?

Hi, thanks! I’ve been working on that already today but then ran into this issue. I’m working to get a simplified version of my project in a way that avoids triggering the other bug :confused:

I’ve been playing around with this, trying to get a reproducible test case. It looks like if the Firebase Analytics library is included, the app throws a lot of exceptions at startup while debugging. The exceptions are non-fatal but show up if I do not enable “ignore exceptions.” But the app hangs indefinitely somewhere in the launch of the Android Application/Activity lifecycle. As best as I can tell at the moment, setting the Firebase Analytics dependency to only be included in Release builds seems to avoid the hang. Here’s a sample project.

com.debughang.zip (36.2 KB)

Two things to note. First, I’m dealing with two other unrelated bugs (here and here) that are making it impossible to consistently build projects to test this at the moment. Hopefully this sample project helps for now. Second, I’ve only added Firebase Analytics in the past few months, but I’ve been having persistent issues getting the debugger to connect for a couple years, so I doubt this will fully solve the problem. Once I’m able to build again I’ll try to get some more helpful sample projects to you.

1 Like


can you retest this with 20201119-162149-elements-develop (or later)? while my colleague was not able to reproduce your issue exactly, she fixed some things that could have caused it.


1 Like

Glad to hear! I’m traveling today but will test it out when I get a chance.

1 Like