How do you install an APK file in the Android emulator?

前端 未结 30 1702
滥情空心
滥情空心 2020-11-22 14:53

I finally managed to obfuscate my Android application, now I want to test it by installing the APK file and running it on the emulator.

相关标签:
30条回答
  • 2020-11-22 15:19

    keep your emulator up and running. In the command line, go inside the platform-tools folder, in your sdk folder which come with adt bundle and execute following command :

    >adb install <yourFilename.apk>
    

    This command detect your running emulator/emulators and show you the list of devices where you can install this app(show if any physical device/devices connected to your computer.). Then you can select any one, if only one emulator is running then app will directly installed on it by default.

    Note: For above command your .apk file needs to be in same directory.

    for more detailed tutorial follo : This link

    0 讨论(0)
  • 2020-11-22 15:19

    you write the command on terminal/cmd adb install FileName.apk.

    0 讨论(0)
  • 2020-11-22 15:19

    Follow the steps :

    1. make sure you have allowed installation from unknown sources in settings.
    2. Use the Android Device Monitor to copy the APK to the sdcard.
    3. Use the builtin browser in Android to navigate to file:///sdcard/apk-name.apk
    4. When the notification "Download complete" appears, click it.
    0 讨论(0)
  • 2020-11-22 15:22

    From Windows 7 Onwards ,

    Shift + Right click in your apk file folder.

    Select Open Command Window Here

    Type & Hit "adb install AppName.apk"

    0 讨论(0)
  • 2020-11-22 15:23

    Goto Shell/Terminal/, reach at android-sdk/tools directory then

    adb install fileName.apk // (u can run this command on windows)
    or 
    ./adb install fileName.apk  //( u can run this command on linux)
    
    0 讨论(0)
  • 2020-11-22 15:23

    06-11-2020

    Drag and Drop didn't work for me on Windows 10 Pro.

    1. Put the APK on Google Drive

    2. Access that Google drive using Chrome browser on the Android Emulator

    3. Then install it from there.

    Note: You need to enable unknown sources within the Emulator.

    0 讨论(0)
提交回复
热议问题