Git Product home page Git Product logo

Comments (11)

kali avatar kali commented on July 17, 2024

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 ?

from dinghy.

tiby312 avatar tiby312 commented on July 17, 2024

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?

from dinghy.

tiby312 avatar tiby312 commented on July 17, 2024

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")

from dinghy.

tiby312 avatar tiby312 commented on July 17, 2024

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

from dinghy.

kali avatar kali commented on July 17, 2024

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"

from dinghy.

tiby312 avatar tiby312 commented on July 17, 2024
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?

from dinghy.

kali avatar kali commented on July 17, 2024

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 :)

from dinghy.

tiby312 avatar tiby312 commented on July 17, 2024

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'

from dinghy.

tiby312 avatar tiby312 commented on July 17, 2024

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

from dinghy.

kali avatar kali commented on July 17, 2024

Good. Everything working now ? OK to close ?

from dinghy.

tiby312 avatar tiby312 commented on July 17, 2024

Yup. Thanks again

from dinghy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.