-
Notifications
You must be signed in to change notification settings - Fork 627
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
Dex conversion failed: Error: Could not create the Java Virtual Machine #4920
Comments
Thanks for filling a bug. This means that the d8 tool didn't run correctly. |
Same problem, same (older patch) java version
|
In my case, this is a problem with the d8 tool itself, up on running
And this fix worked fine for me, it's not ideal since you need to edit |
Maybe we should actually run the d8.jar directly from the build script instead of relying on the .bat script. |
D:\codebase\slint-android-demo>cargo apk run --target aarch64-linux-android --lib
Using package
slint-android-demo
inD:\codebase\slint-android-demo\Cargo.toml
Compiling i-slint-backend-android-activity v1.5.1
Compiling i-slint-renderer-skia v1.5.1
error: failed to run custom build command for
i-slint-backend-android-activity v1.5.1
Caused by:
process didn't exit successfully:
D:/rust-target\debug\build\i-slint-backend-android-activity-c5b233ffd7d690ce\build-script-build
(exit code: 101)--- stdout
cargo:rerun-if-env-changed=ANDROID_HOME
cargo:rerun-if-env-changed=JAVA_HOME
--- stderr
thread 'main' panicked at C:\Users\Administrator.cargo\registry\src\mirrors.ustc.edu.cn-12df342d903acd47\i-slint-backend-android-activity-1.5.1\build.rs:87:9:
Dex conversion failed: Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
note: run with
RUST_BACKTRACE=1
environment variable to display a backtraceError: Command
cargo build --lib --target aarch64-linux-android
had a non-zero exit code.D:\codebase\slint-android-demo>java -version
java version "11.0.21" 2023-10-17 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.21+9-LTS-193)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.21+9-LTS-193, mixed mode)
The text was updated successfully, but these errors were encountered: