简体   繁体   中英

Android: adb install apk fail

I just started mobile development a few weeks ago. I am having one problem when I am trying to install the application to my phone(Huawei phone) with "adb install app/build/outputs/apk/newApk.apk". The first time I run this command, I get this error:

Performing Streamed Install
adb: failed to install app/build/outputs/apk/newApk.apk: (my branch)

When I try again, it is stuck at Performing Streamed Install. I am not sure if the problem is with my phone model or adb. I tried "adb (deviceId) install app/build/outputs/apk/newApk.apk" with options like -t, -r, and still without success. I also do not have the application installed on my phone.

You can try running it on an android emulator or try a different phone

Make sure you have given all the permission on phone, USB debugging is enabled, Install via USB is enabled.

Try, adb devices. Phone should show your phone on terminal

OR, Try below steps if it works Try below steps: 1. disconnect phone 2. turn Off “USB Debugging” and turn it on 3. connect the device again

OR, Last thing you can try is move your apk file to some other location and try to install from that location(as sometime it happens because of folder permission or corrupt folder).

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