Monday, December 19, 2011

steps to Install .apk files in Android emulator (AVD)

Here is the solution to installing the .apk files in AVD which is short for Android Virtual Device. I am assuming that you already know how to install the sdk and setup the Android Emulator.
Just make sure the development environment is set, go to the Android sdk root directory, search for the folder platform-tools and then right click on computer then properties and then choose the advanced system settings, then Environment Variables then find the path option and edit it by adding a semicolon(;) and then pasting in the path of the Platform-tools folder. Now open up the command prompt and type in
cd [path of the "platform-tools" folder]
for eg. cd C:\android-sdk-windows\platform-tools
and then hit enter and now copy the .apk app file to the platform-tools directory and switch back to command prompt
now type in the ADB(Android Development Bridge) command, with still working on the platform-tools folder in command prompt. type the following command
adb install abc.apk 
here abc is the name of the file.
it will take a few minutes and it is all done showing the success message. Do follow the video for more detailed picture on this and enjoy developing on the Android Platform




16 comments:

  1. i get an [install_failed_missing_shared_library], how do i fix this

    ReplyDelete
    Replies
    1. may be the problem with the directory privileges, try n put that apk file in another directory or rather drive n then while installing put the full location of the apk, this might work..

      Delete
  2. A couple of things. The semi-colon doesn't help.
    Changing path to ...\platform-tools doesn't work.
    Only seems to work without "\platform-tools"
    Great idea to reduce title length of apk.
    Problem: Could not access the Package Manager. Is the system running?
    What do I do now? Your help be much appreciated.

    Thanks.

    ReplyDelete
    Replies
    1. there might be some issues with your copy of sdk better download the updates to the sdk, this might resolve the problem

      if u still fase some issues send me the screenshot the problem at help@soft-gets.com

      Delete
  3. Nice tutorial.. I have a question sir, do you have a tutorial in how to make android emulator install apps coming from bluestacks? just like apps coming from google play? Hope you can help me.. Thanks in advance!

    ReplyDelete
    Replies
    1. they just work on bluestack, it itself is a type of emulator, I have tried it but not hacked around with it, so not much sure if we can do that...

      Delete
  4. i failed. because of apk dont have certificate

    ReplyDelete
    Replies
    1. go to setting in the emulator then Applications and check the unknown source, may be that will help...

      Delete
  5. please help me . the command prompt always say " can't find *.apk to install "

    ReplyDelete
    Replies
    1. type the full location of the apk file instead of just the name, for eg. something like "c:\downloads\abc.apk"

      Delete
  6. Help!!!

    * daemon not running. starting it now on port 5037 *
    * daemon started successfully *
    error: device not found
    - waiting for device -

    ReplyDelete
    Replies
    1. your emulator is not setup properly try recreating it..

      Delete
  7. DOWNLOAD EMULATOR
    BLUE STACK APK EMULATOR

    http://adf.ly/GOz2J

    ReplyDelete
  8. i got this message
    error: device not found
    - waiting for device -

    ReplyDelete
    Replies
    1. the emulator is not open or not setup properly

      Delete

Thank you for your feedback and keep visiting...!