Water debugging Android 11

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