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

前端 未结 30 1703
滥情空心
滥情空心 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:13

    Now you can just drag and drop the apk in emulator and it will install!

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

    Copy .apk file in your SDK's platform-tools/ directory,then install the .apk on the emulator by using cmd(on windows):

    adb install <path_to_your_bin>.apk
    

    or

    ./adb install <path_to_your_bin>.apk
    

    If there is more than one emulator running, you can find all running emulators by this command:

    adb devices
    

    or

    ./adb devices
    

    then you must specify the emulator upon which to install the application, by its serial number, with the -s option. For example:

    adb -s emulator-5554 install path/to/your/app.apk
    

    or

    ./adb -s emulator-5554 install path/to/your/app.apk
    
    0 讨论(0)
  • 2020-11-22 15:14

    First you need to install Android Studio on your machine. Then simply follow these steps.

    1. Go to you navigation bar and open Android Studio.
    2. From the toolbar open AVD Manager. (If you cannot see it create a new android project)
    3. Create a Virtual Device.
    4. Select a hardware device that you want to install your app.
    5. Select an android image that you want to install on your device. (If you cannot see any images you can download the require image from Recommended, x86 Images or Other images)
    6. Add a name to your AVD.
    7. Now the virtual device has been created and you can simply run it by clicking the play button.
    8. Now you have setup the virtual device and now you need to install the APK file.
    9. Download the APK file that you want to install and Drag and Drop it to the emulator.
    10. The APK file has been successfully installed and you can see it in your applications.
    11. Now you can simply run the installed app.
    0 讨论(0)
  • 2020-11-22 15:14

    1) paste the myapp.apk in platform-tools folder , in my case C:\Users\mazbizxam\AppData\Local\Android\android-sdk\platform-tools, this is the link in my case it may change to you people

    2)open the directory in CMD CD C:\Users\mazbizxam\AppData\Local\Android\android-sdk\platform-tools

    3)Now you are in platform-tools folder , just type adb install myapp.apk

    please ensure that your emulator is turn on , if every thing is ok apk will install

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

    Drag and drop

    Simply drag-and-drop the apk file into your emulator.

    You can also run your android emulator without Android Studio.

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

    Download the Apk file from net and copy it to platform-tools of your SDK folder, then in command prompt go to that directory an type:

    adb install filename.apk
    

    press enter it will install in few seconds

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