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

android templete app is crashing. #426

Open
Motanescu1357 opened this issue Dec 26, 2024 · 0 comments
Open

android templete app is crashing. #426

Motanescu1357 opened this issue Dec 26, 2024 · 0 comments

Comments

@Motanescu1357
Copy link

Motanescu1357 commented Dec 26, 2024

When I attempt to compile the bevy breakout example it opens a window and crashes saying that the app is stoping constantly.

To reproduce this bug just create a new folder.Then run inside of the folder "cargo-mobile init" and use the bevy demo template and connect a device and use cargo android run.

The app woud have loaded.

Host OS: ubuntu
Target OS: android
Ouput of `adb logcat':
--------- beginning of crash
12-25 22:22:11.546 23923 23923 E AndroidRuntime: FATAL EXCEPTION: main
12-25 22:22:11.546 23923 23923 E AndroidRuntime: Process: com.example.rust_test_app, PID: 23923
12-25 22:22:11.546 23923 23923 E AndroidRuntime: java.lang.UnsatisfiedLinkError: Unable to load native library "/data/app/~~W6sjOBHrZlhFSS9-cXWL2A==/com.example.rust_test_app-wC7ipzXqXJAq-OGVQ-HNNA==/base.apk!/lib/arm64-v8a/librust_test_app.so": dlopen failed: cannot locate symbol "__cxa_pure_virtual" referenced by "/data/app/~~W6sjOBHrZlhFSS9-cXWL2A==/com.example.rust_test_app-wC7ipzXqXJAq-OGVQ-HNNA==/base.apk!/lib/arm64-v8a/librust_test_app.so"...

cargo-mobile doctor output
[✔] cargo-mobile v0.17.4
• Contains commits up to ""
• Installed at "~/.cargo/.cargo-mobile2"
• Ubuntu v24.04.1 LTS (Noble Numbat
• rustc v1.83.0 (90b35a623 2024-11-26)
[2024-12-26T12:49:29Z WARN cargo_mobile2::android::env] ANDROID_HOME isn't set; falling back to ANDROID_SDK_ROOT, which is deprecated

[✔] Android developer tools
• SDK v35.0.2 installed at "/Android/Sdk"
• NDK v27.2.12479018 installed at "
/Android/Ndk"
[2024-12-26T12:49:29Z WARN cargo_mobile2::android::env] ANDROID_HOME isn't set; falling back to ANDROID_SDK_ROOT, which is deprecated

[✔] Connected devices
• A21s of user [my username here] (SM-A217F)

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

1 participant