Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting the error "device not found" when running a apk file from Android emulator

Tags:

android

apk

I am trying to install an apk file from command prompt but getting an error "Device not found".

like image 405
Chiranjib Avatar asked Aug 06 '10 10:08

Chiranjib


People also ask

How do I run an APK file on an emulator?

Step to install APK in Emulator : Step 1 -> Run the emulator step 2-> Paste the apk in SDK manager tools and platform-tools folders. Step 3->Run this command adb install AppNaem. APK . Wait for 2 min it's show Success Message.


2 Answers

try "adb devices" first and see the list of devices connected.
If the phone does not appear, do this :
"adb kill-server" wait a few seconds then "adb start-server"
If the phone appears in the list but its name is ?????, you have an issue of permission.
If the phone appears fine, you might have an issue in your command. Then check the following :

Is your phone in debugging mode?
Have you added the debuggable tag to the manifest of your application?
is the phone properly connected with the cable to your computer?
Have you done everything correctly on this page.

like image 51
Sephy Avatar answered Sep 30 '22 03:09

Sephy


Fist turn on the emulator and then go to prompt and type:

adb install yourfile
like image 44
Lanlan82 Avatar answered Sep 30 '22 02:09

Lanlan82