简体   繁体   中英

Adb install apk failure

my problem is about android and the adb commands. I'm working on a Nexus 5 and i want to install and apk with adb commands. So i start with adb devices, my mobile is detected by the computer so i go to the repertory where the apk is located and i launch adb install name.apk It returns : * daemon not running. starting it now on port 5038 * * daemon started successfully * error: device not found - waiting for device - * daemon not running. starting it now on port 5038 * * daemon started successfully * error: device not found - waiting for device -

The Nexus 5 is rooted, and usb debug is activated

adb devices give me some sort of serial number of the mobile

If adb devices gives you a list of devices, then you could try to take serial number of your device and call adb -s <serialNumber> install name.apk . Here is more options you could try.

如果您使用的是Ubuntu,请尝试通过赋予sudo权限来重启adb服务器。cd> adb位置,然后执行sudo ./adb kill-server和sudo ./adb start-server。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM