Search Luakit and install Luakit plugin and restart androidstudio
Open Project Struture window
Select Modules and Mark as Sources
Select Edit Configurations ...
Add Lua Remote(Mobdebug)
Before you debug in androidstudio, we need add the follow code, there are two params , first is your computer ip address, second is the connecting port ,default is 8172.
Here are some tips for debuging on the device , if your device can not locate in the same network segment, you can open your device's hotspot and connect your computer to your device's hotspot, now you can debug your device