Comments (11)
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.
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.
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.
I meant to say that I cloned the repo instead of using rustup
from dinghy.
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.
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.
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.
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.
Ah! turns out my adb was out of date. I updated it using the sdkmanager utility and it worked. Thanks!
from dinghy.
Good. Everything working now ? OK to close ?
from dinghy.
Yup. Thanks again
from dinghy.
Related Issues (20)
- Dinghy on Linux HOT 4
- Copies libdl.so to Android, causing failure to run HOT 3
- test --no-fail-fast is not recognized HOT 1
- How to build with non-default crate features? HOT 3
- Cannot run tests on iOS 14 device HOT 5
- Support building crates that use resolver 2 HOT 1
- No more working on iOS devices 14.x HOT 2
- test-app build fails with unable to find library -lgcc HOT 3
- Multiple arch in same tc
- Support for aarch64-apple-ios-sim in dinghy
- Rust 2021 Edition HOT 1
- Existence of a resource directory in project root breaks `dinghy run` for iOS simulator
- `catch_unwind` broken on `armv7-apple-ios` HOT 1
- lldb output is variable HOT 2
- Share resource files between tests HOT 7
- No device support directory for iOS version 12.5 HOT 3
- deploy to iOS devices with ios-deploy HOT 2
- Duplicate executable file in ios *.app folder
- On the use `std::fs::ReadDir.next()` HOT 3
- Maintain CHANGELOG HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dinghy.