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

Please click here to login and add comments! || automatically refresh content every seconds