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

Blank page when running mobile application on android #1875

Closed
Rextens opened this issue Jan 27, 2024 · 1 comment · Fixed by #2087
Closed

Blank page when running mobile application on android #1875

Rextens opened this issue Jan 27, 2024 · 1 comment · Fixed by #2087
Assignees
Labels
mobile Mobile renderer

Comments

@Rextens
Copy link

Rextens commented Jan 27, 2024

When running cargo android run with newest(b7b5f5c in this case) commit, application is showing just blank page with the app title above. It is also not accessible by webview testing tools like chrome://inspect/#devices

Steps To Reproduce

  1. Create mobile application following the tutorial
  2. Use following dependencies inside Cargo.toml instead of ones provided by the tutorial:
    [dependencies] anyhow = "1.0.56" log = "0.4.11" dioxus = { git = "https://github.com/dioxuslabs/dioxus", version = "0.4.2" } dioxus-desktop = { git = "https://github.com/dioxuslabs/dioxus", version = "0.4.2", default-features = false, features = ["tokio_runtime"] } wry = "0.34.0"
  3. Connect phone, or run virtual device via android studio
  4. Run cargo android run to deploy the application
  5. Open the application

Expected behavior

Application should show what is coded. In case of the tutorial code, it should show the button, that upon clicking is adding numbers below, like here(Screenshot taken from chrome://inspect/#devices):
image

Instead, this is what is showing up:
image

Environment:

  • Dioxus version: [v0.4.2, github master]
  • Rust version: [1.75.0, stable]
  • OS info: [Windows]
  • App platform: [mobile, android]
@ealmloff ealmloff added the mobile Mobile renderer label Jan 28, 2024
@jkelleyrtp jkelleyrtp added this to the 0.5.0: Signals milestone Feb 23, 2024
@jkelleyrtp jkelleyrtp mentioned this issue Mar 15, 2024
3 tasks
@jkelleyrtp jkelleyrtp self-assigned this Mar 15, 2024
@jkelleyrtp
Copy link
Member

Should be fixed now - make sure you select the right debug target.

See this issue for more details:
tauri-apps/cargo-mobile2#290

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mobile Mobile renderer
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants