1

when i try to build my MAUI application (.net7-android) i get the following warning:

Description MSB3073: The command 
""C:\Program Files 
(x86)\Android\android- 
sdk\platform-tools\adb" -s 
ZY22BL2K84 uninstall -k 
"de.rnd_games.thetavern"" exited 
with code 1.

After building the app in release Mode und install it manually on my device (NOT deploying it) the app instantly crashes. But if i deploy it in debug mode to my mobile everything works fine. Can anyone please help? Thank you

2
  • Has it come to your mind to deploy it in release? What happens then? Commented Apr 10, 2023 at 5:49
  • You need to publish your application to make sure it works on deployed machine. Publish always uses the Release folder. There are minor differences in the debug/release code that would prevent code from running on a deploy machine without publishing. Commented Apr 10, 2023 at 9:00

1 Answer 1

1

You can try the following steps:

1.try to remove the bin and obj folders ,then uninstall the previous versions of the app from your device, and try again;

2.if the problem persist, try to set the Linker behavior to Don't link and try again;

3.try to disable AOT;

Sign up to request clarification or add additional context in comments.

3 Comments

In my case uncheck AOT compilation helped me
Congrats. And thanks for your sharing. :)
I am glad to help :)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.