stale-kilobyte-24744
12/03/2022, 12:32 PMtext
; AR=llvm-ar cargo install cargo-shuttle
--snip--
Compiling jni v0.19.0
error[E0425]: cannot find value `EXPECTED_JVM_FILENAME` in this scope
--> /data/data/com.termux/files/home/.cargo/registry/src/github.com-1ecc6299db9ec823/jni-0.19.0/build.rs:102:25
|
102 | if file_name == EXPECTED_JVM_FILENAME {stocky-kangaroo-53672
12/05/2022, 7:13 AMcargo tree I also can't find JNI...
I'm wondering if some dependency is turning it on on the mobile device. Are you trying to develop on an Android phone? Using something like termux?stale-kilobyte-24744
12/10/2022, 8:42 PMstocky-kangaroo-53672
12/15/2022, 10:07 AMstocky-kangaroo-53672
12/15/2022, 10:07 AMcargo tree here?stale-kilobyte-24744
12/15/2022, 12:01 PMcargo tree before your comment here).
And I've found the culprit.
The dependency path is cargo-shuttle → webbrowser → jni.
The jni crate devs fixed the issue in their latest version and the latest version of webbrowser was also updated to use it. In fact, crashes on Termux are even mentioned in `webbrowser`'s release notes.
Fortunately, cargo-shuttle has recently been switched to the latest version of webbrowser, so the issue is gone. Yay! 🎉