Here is the issue .
Tldr, LineageOS builds its ROM as userdebug. However, Android Studio assumes that devices with non-user build type have su
executable when using APP Inspector and Layout Inspector.
So I make a simple Magisk module to workaround it. Use at your own risk.