It's content flashes then showing "Collecting data", again and again. No way to view, never say interract. How to fix this? Can I control the target via jdb simultaneously and how? Android Studio version is 3.5.3. Thanks!
You've now learned the basics of debugging multithreaded apps. You can observe, flag and unflag, and freeze and thaw threads by using the Threads window, the Thread list in the Debug Location toolbar, or thread markers in the source code editor. Use Threads to examine and control threads.
While in break mode, open the Threads window by selecting Debug > Windows > Threads. You must be in a debugging session to open or see the Threads and other debugging windows. In the source code, locate the Console.WriteLine (); line. Right-click in the Threads window, and select Show Threads in Source from the menu.
This thread is very important because it is in charge of dispatching events to the appropriate user interface widgets, including drawing events. It is also almost always the thread in which your application interacts with components from the Android UI toolkit (components from the android.widget and android.view packages).
By design, Android View objects are not thread-safe. An app is expected to create, use, and destroy UI objects, all on the main thread. If you try to modify or even reference a UI object in a thread other than the main thread, the result can be exceptions, silent failures, crashes, and other undefined misbehavior.
This sounds like a memory cache issue. Try to invalidate cache and restart. That should fix it.
File > Invalidate cache and restart
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With