How to make android studio debut on mobile to save the memory usage on pc(the emulator really consume too much memory).
- enable the developer options by clicking the version number 7 times. then enable the usb debug.
- in app\build.gradle, inside buildTypes {}, add debug{debuggable true}
- in app\src\main\AndroidManifest.xml, beside <application, add android: debuggable="true"
- in eclipse/debug configuration, set the target to usb device instead of emulator.
--
Sam 17:45 01/04/2019