Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR: "adb push" returned with value 1 #185

Closed
Jesna12 opened this issue Jun 26, 2018 · 88 comments
Closed

ERROR: "adb push" returned with value 1 #185

Jesna12 opened this issue Jun 26, 2018 · 88 comments
Labels

Comments

@Jesna12
Copy link

Jesna12 commented Jun 26, 2018

When I try to run this scrcpy cmd from eclipse, it says 'ERROR: "adb push" returned with value 1'. please help.

@rom1v
Copy link
Collaborator

rom1v commented Jun 26, 2018

Which system? Put the path of your adb in your PATH.

@rom1v rom1v added the adb label Jun 26, 2018
@sonng
Copy link

sonng commented Jul 5, 2018

@Jesna12 - Is that all there is to the error? Was there anything else with it? For example, I had this error

adb: error: failed to get feature set: more than one device/emulator
2018-07-05 14:23:58.610 scrcpy[31572:326844] ERROR: "adb push" returned with value 1

And it was because I had an emulator running.

@rom1v
Copy link
Collaborator

rom1v commented Jul 5, 2018

This error occurs every time the adb command returns a non-zero value. There may be several causes.

@sonng
Copy link

sonng commented Jul 5, 2018

Yep, the above was an example, I believe @Jesna12 only copied the last line in that response.

@kwl01skz
Copy link

kwl01skz commented Jul 18, 2018

failed to get feature set: more than one device/emulator

adb devices

List of devices attached
************ devices
************ devices

you need find YOUR_DEVICE_CODE
some string or IP address on these *****

scrcpy -s YOUR_DEVICE_CODE

@Jesna12
Copy link
Author

Jesna12 commented Jul 20, 2018

I tried providing device code along with scrcpy. Then the error says "adb: error: cannot stat 'scrcpy-server.jar': No such file or directory ERROR:adb push returned with value 1"

@ambhaiji
Copy link

adb disconnect
then choose one of these depending on how you are connecting to your device
adb usb // for usb
adb tcpip 5555 // for adb over wifi

@Sinnedan
Copy link

Hello,

I'd like to mirror my Oculus Go on my MacBook with adb & scrcpy.

MacBookPro 14.2
macOS High Sierra 10.13.6-

For this I set the Oculus Go in the developer mode.
Install adb on my MacBook and go to the directory with the terminal.

Now I enter the following commands:

./adb shell ip route (to get the IP address)
./adb tcpip 5555
./adb connect 192.168.178.49 (to connect the Oculus Go via WLAN)

Now I go with the terminal into the directory where Scrcpy is located and try the following commands:

scrcpy -b 25M
scrcpy -b 25M-c 1000: 1000: 110: 220
scrcpy -c 1000: 1000: 110: 220
scrcpy -s 192.168.178.xx

Then I get the following error messages with each command:
ERROR: "adb push" returned with value 1

Can someone help me here?

Greetings
Maik

@rom1v
Copy link
Collaborator

rom1v commented Aug 16, 2018

@Sinnedan #189 (comment)

@Sinnedan
Copy link

Thx rom1v

Thank you, but I think that my scrcpy does not work!

For example, if I enter scrcpy in the terminal and correct path, the same error message comes up!

2018-08-16 21: 58: 20.234 scrcpy [1148: 73353] ERROR: "adb push" returned with value 1

Does anyone have an idea here?
Maybe I made it wrong?

@rom1v
Copy link
Collaborator

rom1v commented Aug 16, 2018

What is the result of adb devices in that terminal?

@Sinnedan
Copy link

Maiks-MBP:platform-tools maiksteidel$ ./adb devices
List of devices attached

Maiks-MBP:platform-tools maiksteidel$ ./adb connect 192.168.178.49:5555
connected to 192.168.178.49:5555

@rom1v
Copy link
Collaborator

rom1v commented Aug 16, 2018

And then scrcpy fails? (even if you unplugged the USB before adb connect)

@Sinnedan
Copy link

Yes, I do not connect the device at all.
I connect via Wifi and then enter the scrcpy command and then the following message appears:
2018-08-16 22: 42: 45.102 scrcpy [5086: 114904] ERROR: "adb push" returned with value 1

Can you check if scrcpy works at all?
Maybe I installed it wrong?
Have everything with the command ...
/ usr / bin / ruby -e "$ (curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
everything installed and then the command
brew install scrcpy
Taken!

@rom1v
Copy link
Collaborator

rom1v commented Aug 16, 2018

Can you check if scrcpy works at all?

Yes, it does 😉

When you get this adb push error, does adb shell works?

Does scrcpy work over usb?

What is the result of scrcpy -v?

@Sinnedan
Copy link

Hello, many thanks for your help.
Unfortunately I can only test your suggestion tonight.
Thanks again... :)

@Sinnedan
Copy link

When you get this adb push error, does adb shell works?
Unfortunately I do not know, but I can connect with adb my Oculus Go via WLAN.

Does scrcpy work over usb?
I installed scrcpy with the two commands on my MacOS.
It's in the / usr / local / bin folder.

What is the result of scrcpy -v?

scrcpy v1.3

dependencies:

  • SDL 2.0.8
  • libavcodec 58.18.100
  • libavformat 58.12.100
  • libavutil 56.14.100

I am very grateful for your time.

Thank you :)

@rom1v
Copy link
Collaborator

rom1v commented Aug 17, 2018

Does /usr/local/share/scrcpy/scrcpy-server.jar exist?

Does this command work:

adb push /usr/local/share/scrcpy/scrcpy-server.jar /data/local/tmp/

?

And this one:

SCRCPY_SERVER_PATH=/usr/local/share/scrcpy/scrcpy-server.jar scrcpy

?

@Sinnedan
Copy link

"Does /usr/local/share/scrcpy/scrcpy-server.jar exists?"
Yes, the folder exists.

"Does this command work:
adb push /usr/local/share/scrcpy/scrcpy-server.jar /data/local/tmp/ ?"
Yes, there seem to be a lot of tests or something. Do you need the text?

"And this one:
SCRCPY_SERVER_PATH=/usr/local/share/scrcpy/scrcpy-server.jar scrcpy ?"
Maiks-MBP:adbscr maiksteidel$ SCRCPY_SERVER_PATH=/usr/local/share/scrcpy/scrcpy-server.jar scrcpy
exec: No such file or directory
2018-08-17 19:04:24.315 scrcpy[5384:228786] ERROR: "adb push" returned with value 1
Maiks-MBP:adbscr maiksteidel$ SCRCPY_SERVER_PATH=/usr/local/share/scrcpy/scrcpy-server.jar
Maiks-MBP:adbscr maiksteidel$
Nothing happens!

@rom1v
Copy link
Collaborator

rom1v commented Aug 17, 2018

adb push /usr/local/share/scrcpy/scrcpy-server.jar /data/local/tmp/
Yes, there seem to be a lot of tests or something. Do you need the text?

Yes, please (at least a part of it). Does it start with something like:

Android Debug Bridge version 1.0.39
Version 0.0.1-4500957
...

?

exec: No such file or directory

So it does not find your adb.

What is the result of adb --version? echo $PATH? which adb?
Where is your adb installed?

@rom1v
Copy link
Collaborator

rom1v commented Aug 17, 2018

Ah, I just noticed that you executed adb using ./adb, so it is probably in your current folder, but not in your PATH.

You can specify a custom path for your adb:

ADB=./adb scrcpy

Alternatively, you could install adb on Mac OS, e.g. from homebrew:

brew cask install android-platform-tools

@Sinnedan
Copy link

When I following command ...
"ADB=./adb scrcpy"
my MacBook has mirrored the Oculus Go.
Yipieeeeee

I will always try this now and hope that it continues to work.

Your suggestion...
"Alternatively, you could install adb on Mac OS, e.g. from homebrew:
brew cask install android platform tools"
I will not enter first, because I'm afraid that it will not work!

I will try to repeat this day by day and would be happy if the problem is solved.
I am very grateful to you.
I wish you a nice weekend.

Maik

@rom1v
Copy link
Collaborator

rom1v commented Aug 17, 2018

my MacBook has mirrored the Oculus Go.
Yipieeeeee

👍

I will not enter first, because I'm afraid that it will not work!

😨

You might also be interested in:

@rom1v rom1v closed this as completed Aug 17, 2018
@Zeckatz
Copy link

Zeckatz commented Oct 24, 2018

When I try to mirror my android phone it says

adb: error: failed to get feature set: no devices/emulators found
ERROR: "adb push" returned with value 1
Press any key to continue...

Please help me :'(

@sadmiral98
Copy link

@rom1v

When I try to mirror my android phone it says

adb: error: failed to get feature set: no devices/emulators found
ERROR: "adb push" returned with value 1
Press any key to continue...

Please help me :'(

i got same issue here please

@npes87184
Copy link
Contributor

@rizkysptr

Does your phone enable adb debugging?

@hasansidd
Copy link

I have ran into this issue a few times and disabling and enabling USB debugging fixes it.

@karuvally
Copy link

I tried providing device code along with scrcpy. Then the error says "adb: error: cannot stat 'scrcpy-server.jar': No such file or directory ERROR:adb push returned with value 1"

I had the same issue, it seems there was a spelling mistake. The file "scrcpy-server.jar" was named "scrpy-server.jar" in my machine

@rom1v
Copy link
Collaborator

rom1v commented Aug 15, 2020

@AlexanderCxPx
Copy link

pls Where i write "scrcpy -s (my_number-serial)"? :(

@rom1v
Copy link
Collaborator

rom1v commented Sep 29, 2020

On Windows (I guess):

  • press Windows+r
  • type cmd.exe and press Enter, it will open a terminal
  • type cd C:\the\path\to\your\scrcpy\directory (adapt the path)
  • type the command you want (scrcpy -s xxxxxxx)

@MaLaCoiD
Copy link

If you're on Windows, you don't have to edit your path. Just copy adb into the scpy folder:
PS C:\Users\MaLaCoiD\Downloads\scrcpy> .\scrcpy.exe
INFO: scrcpy 1.16 https://github.com/Genymobile/scrcpy
adb server version (36) doesn't match this client (41); killing...

  • daemon started successfully
    adb: error: failed to get feature set: no devices/emulators found
    ERROR: "adb push" returned with value 1
    Press any key to continue...

PS C:\Users\MaL\Downloads\scrcpy> cp 'C:\Program Files (x86)\Minimal ADB and Fastboot\adb.exe' .

PS C:\Users\MaLaCoiD\Downloads\scrcpy> .\scrcpy.exe
INFO: scrcpy 1.16 https://github.com/Genymobile/scrcpy
[100%] /data/local/tmp/scrcpy-server.jar
[server] INFO: Device: Google Chromecast (Android 10)
INFO: Renderer: direct3d
INFO: Initial texture: 1920x1080

@Harshbardhan2501
Copy link

Harshbardhan2501 commented Nov 1, 2020

I am getting the same error but I don't understand what I have to do please help

@lupusxp3
Copy link

lupusxp3 commented Nov 9, 2020

Ketikkan 'adb kill-server' , lalu enter.
Kemudian ketikkan 'adb start-server' enter.
setelah itu masuk lagi ke adb device

@geekyshubham
Copy link

adb: error: failed to get feature set: no devices/emulators found (means there is connectivity issue setup tcpip on device if havent already )

ERROR: "adb push" returned with value 1 (means its unable to locate the file to be pushed in device so lookout if the file "scrcpy-server.jar" is accessible remove env vaeiable that might cause the issue or set value as the file location

@shylendramadda
Copy link

I too faced the same issue. After doing this it is working fine for me.

  1. Delete the existing file of scrcpy
  2. Download it fresh from here https://github.com/Genymobile/scrcpy/releases/download/v1.16/scrcpy-win64-v1.16.zip
  3. Disable USB Debugging and reenable in the mobile settings Developer Options.

Before this try with the following cmds from scrcpy console:

adb kill-server
adb start-server

@breuerfelix
Copy link

i faced the same issue and yet my solution is not listed here so for some arch linux people:

adb kill-server
sudo adb start-server
scrcpy

@FabioMarturanoJr
Copy link

FabioMarturanoJr commented Mar 23, 2021

ERROR: "adb push"
to fix this, I change the USB port,
I was using the front port, e change to mobo usb and run :)

@oopsmaniac
Copy link

adb: error: failed to get feature set: no devices/emulators found
ERROR: "adb push" returned with value 1
Personaly i solved the problem in downloading "Universal ADB Driver v6.0" here: https://androidmtk.com/download-universal-adb-driver and in installing it in following the instructions here: https://androidmtk.com/install-universal-adb-driver After that my Redmi note 8 pro was recognized perfectly by scrcpy and no error messages anymore.

@tsathis
Copy link

tsathis commented Jun 4, 2021

[solved] I'm a ubuntu user and in my case the problem was I had two versions of adb:

Android Debug Bridge version 1.0.39
Version 1:8.1.0+r23-5ubuntu2
Installed as /usr/lib/android-sdk/platform-tools/adb
Android Debug Bridge version 1.0.41
Version 31.0.1-7187441
Installed as /home/tharindu/Android/Sdk/platform-tools/adb

When I tried /home/tharindu/Android/Sdk/platform-tools/adb connect <ip> to connect and then scrcpy then it says that,

INFO: scrcpy 1.12.1 <https://github.com/Genymobile/scrcpy>
adb server version (41) doesn't match this client (39); killing...
* daemon started successfully
adb: error: failed to get feature set: no devices/emulators found
ERROR: "adb push" returned with value 1

But when I tried with /usr/lib/android-sdk/platform-tools/adb, it works well!

@DenDen60
Copy link

DenDen60 commented Jun 9, 2021

SOLVED: I set my USB mode to PTP.


I am trying to install the version 1,17. I tried it on a WIN10 machine as well as a Microsoft Surface tablet and I have this same issues. I am using a LG G4 phone

I tried to use this approach to solve it but it doesn't work. Any other ideas?

https://www.youtube.com/watch?v=II58ejjp3gQ&ab_channel=AbdulAzizAhwan

@XiaomiFlashTool
Copy link

db: blunder: neglected to get include set: no gadgets/emulators found

Mistake: "adb push" got back with esteem 1

Personaly I tackled the issue in downloading "General ADB Driver v6.0" here: and in introducing it in adhering to the guidelines here: After that my Redmi note 8 expert was perceived consummately by scrcpy and no mistake messages any longer.

https://firmwareflashfiles.com/mi-account-unlock-tool/

@dernoun
Copy link

dernoun commented Jul 2, 2021

Try with a lower definition scrcpy -m 1024

@AgostinhoMayoral
Copy link

it could be that the device is not enabled as developer mode.

@JadersonFelisbertoValerio

No meu caso, o erro estava ocorrendo por conta de um mal contato do cabo usb, a todo momento em que eu mexia no cabo ele desconectava e não conectava mais, passando a mostrar esta mensagem, ou substituir o cabo o problema foi resolvido.

@noga-dev
Copy link

adb kill-server

Also works in Win.

@Raed125
Copy link

Raed125 commented Sep 5, 2021

Hello, I used scrcpy and it was very good but when I used it on the other device it said ("adb push" returned with value 1)

also The difference between the two is that I did usb debugging in the first, but I can't on the other

THx ^-^

@rom1v
Copy link
Collaborator

rom1v commented Sep 5, 2021

Without USB debugging enabled, adb (and scrcpy) can't work.

@ben-xD
Copy link

ben-xD commented Sep 12, 2021

You just need to enable USB debugging:

Screenshot 2021-09-12 at 09 33 41

@lakkaboss
Copy link

C:\scrcpy>scrcpy
INFO: scrcpy 1.11 https://github.com/Genymobile/scrcpy
adb: error: failed to get feature set: no devices/emulators found
ERROR: "adb push" returned with value 1
Press any key to continue...

help

@rom1v
Copy link
Collaborator

rom1v commented Sep 14, 2021

Just read the FAQ: https://github.com/Genymobile/scrcpy/blob/master/FAQ.md#adb-issues

Btw, scrcpy v1.11 is very old, the latest is v1.19.

@10bn
Copy link

10bn commented Oct 1, 2021

I had this issue too. I was caused by another device already connected via adb.

@Genymobile Genymobile deleted a comment from indragni Dec 6, 2021
@giuseppev177
Copy link

I had a similar problem with strcpy on linux mint xfce. Everything worked when I enabled USB_DEBUGGING in my Android phone in developer mode

@giuseppev177
Copy link

I have a old PC TOSHIBA SATELLITE running linux mint xfce (last version).

When USB_DEBUGGING is turned off on my android phone, I got this message:

scrcpy
adb: error: failed to get feature set: no devices/emulators found
ERROR: "adb push" returned with value 1

When USB_DEBUGGING is allowed, after the command scrcpy, the screen of my android phone is displayed on my PC correctly

@gotshadowbantempaccount
Copy link

gotshadowbantempaccount commented Apr 3, 2023

just downgrade to version 1.5 then some error about scrpy adb uncompatybile

  • adb server version (41) dosn't match this client 40; killing..

then copy from android studio adb.exe + 3 dll and adb and its start working

@rom1v
Copy link
Collaborator

rom1v commented Apr 3, 2023

just downgrade to version 1.5 then some error about scrpy adb uncompatybile

Why would you do that?

adb server version (41) dosn't match this client 40; killing..

https://github.com/Genymobile/scrcpy/blob/master/FAQ.md#conflicts-between-adb-versions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests