

So most of the time I use my Android smartphone to debug an app. Also, I prefer using real devices than emulator. Unless you have 16GB or more of RAM, using emulator would be no problem. Why you don’t just use the emulator? That could work, but Android emulator takes pretty big amount of my computer memory. I don’t want to do that every time this happened caused it need to build cache, sync, and build the project all over again which is wasting my precious time. I try searching for a solution on Google but most of the solutions I found were to invalidate cache and restart Android Studio. I try attaching and detaching the USB cable several times with no result. But something happened, Android Studio did not automatically detect my phone. When I got back, I try to connect my phone to my computer again with the USB cable so that I can see the logcat in Android Studio. When the compiling is finished and it is lunchtime, I disconnect the USB cable from my phone and bring my phone with me.
