dioxus icon indicating copy to clipboard operation
dioxus copied to clipboard

App not Installing / Opening on android

Open velocifer-in opened this issue 1 year ago • 3 comments

App not Installing / Opening on android

I've create a new app using dx new app_name, set the default to mobile, and every other parameter to false. when dx serve --platform android building successfully and serving but emulator is showing no traces of installed apps. when dx serve --platform ios building successfully and serving expected output produced on screen

Steps To Reproduce

Steps to reproduce the behavior:

  • cmd / terminal - dx new app_name
  • dx serve --platform android

Expected behavior

App Should open in emulator, Displaying the contents.

Screenshots

image

Environment:

  • Dioxus version: dioxus 0.6.1 (was built without git repository)
  • Rust version: rustc 1.83.0 (90b35a623 2024-11-26)
  • OS info: MacOS 15.2
  • App platform: mobile

Questionnaire

velocifer-in avatar Jan 09 '25 07:01 velocifer-in

Can you run with --verbose and/or --trace (these can be enabled on the fly as well...) to see what the CLI is selecting?

We fixed a bug recently where we previously silently failed if adb wasn't in your PATH which might be causing this.

jkelleyrtp avatar Jan 09 '25 18:01 jkelleyrtp

I have the same setup. @velocifer-in

It's the same behavior that I have. The app did not open in Android.

After that; I lose this problem in this way:


echo 'export PATH=$PATH:~/Library/Android/sdk/platform-tools' >> ~/.zshrc
source ~/.zshrc

After this app opened on Android.

I suggest, that maybe the dx can detect that if not reached to adb could warn the developer. @jkelleyrtp

rgunindi avatar Jan 09 '25 23:01 rgunindi

@jkelleyrtp @rgunindi Thank you Guys. @jkelleyrtp tried with trace, uploading the trace of command both worked and not worked. @rgunindi This Solution Worked.

image

trace_file_worked.txt

trace_file_notWorked.txt

velocifer-in avatar Jan 10 '25 01:01 velocifer-in