How to install an apk on the emulator in Android Studio?

后端 未结 13 1912
温柔的废话
温柔的废话 2020-12-02 05:24

How do you install an apk on the emulator in Android Studio from the terminal?

In Eclipse we did

/home/pcname/android-sdks/platform-tools/adb -s em         


        
13条回答
  •  有刺的猬
    2020-12-02 06:11

    In Android Studio: View - Tool Windows - Gradle

    In the Gradle tool window navigate to your :app - Tasks - install and then execute (by double-clicking): any of your install*tasks: e.g. installDebug, installRelease

    Note: the apk will also automatically installed when you Run your application

提交回复
热议问题