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

MAUI App works only on Visual Studio Emulator #14378

Closed
muayyat opened this issue Apr 4, 2023 · 6 comments
Closed

MAUI App works only on Visual Studio Emulator #14378

muayyat opened this issue Apr 4, 2023 · 6 comments
Labels
platform/android 🤖 s/needs-attention Issue has more information and needs another look

Comments

@muayyat
Copy link

muayyat commented Apr 4, 2023

MAUI app android apk(debug signed/release signed) not installing on some devices, installing and not opening on some.

Steps to reproduce:

  1. Create a Blazor Maui app on Visual Studio for Mac
  2. Build/Archive and get the apk
  3. Runs fine on the Visual studio android emulator
  4. install APK file to any android device
  5. Launch the app

Versions

  1. .NET 7.0
  2. Visual Studio for Mac 17.5(Latest)
  3. MAUI Blazor Template
@muayyat muayyat changed the title MAUI App works only on Emulator MAUI App works only on Visual Studio Emulator Apr 4, 2023
@jfversluis
Copy link
Member

Hey there, thanks for your report! Unfortunately with just this information it's near impossible to diagnose what might be going on. Without any error messages, logs, anything, our guess it just as good as yours.

Please try to get some more information, ideally a reproduction that we can try ourselves that you can add here. That is also why we have the bug report template in place to get all this information. Please provide all the information that is requested in there. Thanks!

@jfversluis jfversluis added the s/needs-info Issue needs more info from the author label Apr 4, 2023
@ghost

This comment was marked as off-topic.

@muayyat
Copy link
Author

muayyat commented Apr 4, 2023

More Information:

How to Reproduce:

  1. Update Visual Studio on Mac from 17.5.2 to 17.5.3
  2. Create a .NET MAUI/Xamarin project with default template
  3. Build with Debug (Emulator runs it perfectly)
  4. Publish/Release the app and try to install and use the APK on a physical device/Simulator

Expected behaviour:
Run smoothly

Encountered behaviour:
Failed to install or failed to launch after install

Errors:
None

Tried methods:

  1. Reinstalled .NET
  2. Reinstalled Visual Studio for Mac
  3. Reinstalled Xamarin
  4. Cleaned project
  5. Deleted bin and obj folders

Related issues:

  1. Github issue

@ghost ghost added s/needs-attention Issue has more information and needs another look and removed s/needs-info Issue needs more info from the author labels Apr 4, 2023
@jfversluis
Copy link
Member

I understand the steps you are taking. The real question here is why your app is crashing. There might be a lot of potential causes for that. To figure that out, we're going to need to have some kind of logs or error messages from the Android logs. You might want to look into how to use logcat or add some kind of crashlytics service that will help you catch the errors from the crashing app.

In the issue you linked there is actually a workaround mentioned, did you try that?

Again: it would really help if you could give any more information and ideally provide a minimal reproduction so that we can run it ourselves or look through the code what is going on.

@jfversluis jfversluis added s/needs-info Issue needs more info from the author platform/android 🤖 and removed s/needs-attention Issue has more information and needs another look labels Apr 4, 2023
@ghost
Copy link

ghost commented Apr 4, 2023

Hi @muayyat. We have added the "s/needs-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

@muayyat
Copy link
Author

muayyat commented Apr 9, 2023

I have solved this by building on a Windows PC. Maybe the problem is more or less related to how my Mac compiles the project. Thank You

@ghost ghost added s/needs-attention Issue has more information and needs another look and removed s/needs-info Issue needs more info from the author labels Apr 9, 2023
@muayyat muayyat closed this as completed Apr 10, 2023
@ghost ghost locked as resolved and limited conversation to collaborators May 10, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
platform/android 🤖 s/needs-attention Issue has more information and needs another look
Projects
None yet
Development

No branches or pull requests

2 participants