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 when I try to use dinghy #48

Closed
tiby312 opened this issue Mar 13, 2018 · 11 comments
Closed

Error when I try to use dinghy #48

tiby312 opened this issue Mar 13, 2018 · 11 comments

Comments

@tiby312
Copy link

tiby312 commented Mar 13, 2018

ken@ken-XPS-13-9360:~/rust/dinotree$ cargo dinghy build
No such file or directory (os error 2)

dinghy devices correctly shows android device.

@kali
Copy link
Collaborator

kali commented Mar 13, 2018

Hi ! Thanks for the report.

What platform is your workstation ? Is the project you are trying to build publicly available somewhere ?

Can you run adding "-v" right after "dinghy" (or even "-vv" or "-vvv") to get more information ?

@tiby312
Copy link
Author

tiby312 commented Mar 13, 2018

I'm using ubuntu. I tried running dinghy on the dinghy tests instead of my own project, and same issue. It can't find the -v or -d command. I have to do -device. I wonder if the version of dinghy that cargo installed is out of date?

@tiby312
Copy link
Author

tiby312 commented Mar 13, 2018

Yeah that got me further. Now I'm getting a different error I haven't researched yet.

   Finished release [optimized] target(s) in 29.88 secs
 ERROR cargo_dinghy > Error: Error syncing android directory ("/usr/bin/adb" "-s" "ZY223ZTPWZ" "push" "--sync" "/home/ken/rust/dinotree_inner/target/armv7-linux-androideabi/release/dinghy/dinotree_inner-fd4e42d5e4a07169" "/data/local/tmp/dinghy")

Error: Error syncing android directory ("/usr/bin/adb" "-s" "ZY223ZTPWZ" "push" "--sync" "/home/ken/rust/dinotree_inner/target/armv7-linux-androideabi/release/dinghy/dinotree_inner-fd4e42d5e4a07169" "/data/local/tmp/dinghy")

@tiby312
Copy link
Author

tiby312 commented Mar 13, 2018

I meant to say that I cloned the repo instead of using rustup

@kali
Copy link
Collaborator

kali commented Mar 13, 2018

From the form of your ERROR output, you are using the last version, or the one from yesterday, so that part should be fine.

cargo install should install 0.3.1, the current version, but you need to add "-f" in order to overwrite a previously installed one.

can you try running the adb command from the shell directly ?

"/usr/bin/adb" "-s" "ZY223ZTPWZ" "push" "--sync" "/home/ken/rust/dinotree_inner/target/armv7-linux-androideabi/release/dinghy/dinotree_inner-fd4e42d5e4a07169" "/data/local/tmp/dinghy"

@tiby312
Copy link
Author

tiby312 commented Mar 13, 2018

ken@ken-XPS-13-9360:~/rust/dinotree$ adb" "-s" "ZY223ZTPWZ" "push" "--sync" "/home/ken/rust/dinotree/target/armv7-linux-androideabi/release/dinghy/dinotree-a8b9a9a17ad02ace" "/data/local/tmp/dinghy

bash: adb -s ZY223ZTPWZ push --sync /home/ken/rust/dinotree/target/armv7-linux-androideabi/release/dinghy/dinotree-a8b9a9a17ad02ace /data/local/tmp/dinghy: No such file or directory

But I can ls into the source directory

ken@ken-XPS-13-9360:~/rust/dinotree$ ls /home/ken/rust/dinotree/target/armv7-linux-androideabi/release/dinghy/dinotree-a8b9a9a17ad02ace

Cargo.toml  dinotree-a8b9a9a17ad02ace examples  readme.md  src  test_data

Does the folder /data/local/tmp/dinghy need to exist? Maybe I dont have permissions to make it?

@kali
Copy link
Collaborator

kali commented Mar 14, 2018

You got the quotes wrong, here, and it's just bash erroring because it can't find an executable named "adb -s ZY223ZTPWZ push --sync /home/ken/rust/dinotree/target/armv7-linux-androideabi/release/dinghy/dinotree-a8b9a9a17ad02ace /data/local/tmp/dinghy"

Either pick all the quotes from my previous line, or none of them, but what you tried here can't work :)

@tiby312
Copy link
Author

tiby312 commented Mar 14, 2018

Oops my bad. I got this:

ken@ken-XPS-13-9360:~/rust/dinotree_inner$ "/home/ken/android-sdk/platform-tools/adb" "-s" "ZY223ZTPWZ" "push" "--sync" "/home/ken/rust/dinotree_inner/target/armv7-linux-androideabi/release/dinghy/dinotree_inner-fd4e42d5e4a07169" "/data/local/tmp/dinghy"
adb: unrecognized option '--sync'

@tiby312
Copy link
Author

tiby312 commented Mar 15, 2018

Ah! turns out my adb was out of date. I updated it using the sdkmanager utility and it worked. Thanks!

@kali
Copy link
Collaborator

kali commented Mar 15, 2018

Good. Everything working now ? OK to close ?

@tiby312
Copy link
Author

tiby312 commented Mar 15, 2018

Yup. Thanks again

@tiby312 tiby312 closed this as completed Mar 15, 2018
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants