-
-
Notifications
You must be signed in to change notification settings - Fork 10.7k
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
Could not execute "adb push" on Mac #530
Comments
Also tried with:
And also tried with an Samsung S4 mini, the same issue |
ADB=$(which adb) scrcpy ? |
It worked
PS: I`ve tried from windows, it works out of the box when running the exe. For the mac version what changes I should do in order to work with scrcpy directly? Thank you |
echo $PATH You probably have an unexpected trailing Then check if that fixes the problem. |
Oh, no! I didn't notice in your first post:
You just make Replace it by:
Lines 13 to 21 in 39b5893
|
Replaced, now it works. Thank you! |
When the execution of an adb command fails, print the command. This will help to understand what went wrong. See <#530>.
@cotfas I added a commit to log adb commands on error: e443518 In your case, it would have printed:
The mistake would have been obvious. |
Not 100% sure but last night I've checked with the adb in PATH as well, as it was working from the terminal from other folder, but at the moment it works so far. I'm happy with it! Keep up the good work! :) |
The value defined in |
It seems for the Samsung S4 mini I get cotfas:~ work$ scrcpy On the S8, it works. |
Scrcpy requires at least Android 5, I guess your S4 mini has Android 4, right? The adb command error is printed on "unexpected" error. For |
Yes, it has android 4. I understand, no problem. :) |
When using multiple devices
In theory, the computer is listening only until the device is connected. So if you wait ~1 second, you should be able to start another device (unless it crashed or you killed at the wrong time, you'll have to wait more). Anyway, you can use another (free) port:
|
Hello,
I`m trying to use the app on macbook pro mojave with android sdk set to PATH and ADB set to PATH and no mater what method I use I get:
I
ve tried also to build the src manually and ./run /x but the same issue, I
m using it with Samsung S8 non-root.ENV Var:
*both paths are exported to PATH
ADB Version:
I`ve also tried to remove the ADB from the path and I get the same error.
Vlad
The text was updated successfully, but these errors were encountered: