I am making an android application on xamarin VS 2019.
I tried using different VS emulators. When I debug, the phone loads and I can rotate it but when I try to turn it on it does not work. It says that System UI won't turn on and at other times it says that the process failed. I cannot figure out why, I did exactly the same as the tutorial.
Related
I'm working on an Xamarin project for school using C# on VS2019. I'm limited to only using Android. I've been using the built in Android Device manager within VS for my Android Emulator. Hot Reload has been working great up until now. For some reason, my XAML changes are no longer displaying on the emulator immediately using hot Reload.
In the output window, I'm seeing this error StopHotReload: Could not find project for MonoDevelop.Debugger.Soft.MonoDroid.MonoDroidDebuggerSession. I haven't made any changes to the solution or updated any packages. Any ideas why it would just randomly stop working?
It's now working for either mode Changes only(Xamarin.Forms 5.x and newer or Full Page
When running the tutorial:
https://learn.microsoft.com/en-gb/xamarin/android/wear/get-started/hello-wear?tabs=windows#feedback
example on Visual Studio to build an Android Wear application - I get the below errors:
02-13 20:13:24.035 E/eglCodecCommon( 9352): glUtilsParamSize: unknow param 0x000082da
02-13 20:13:24.035 E/eglCodecCommon( 9352): glUtilsParamSize: unknow param 0x000082da
I am running this using Android 9.0 API 28 and using an AndroidWear (Round) emulator.
For my IDE I am using Visual Studio 2019 V16.4.5
Can anyone advise a workaround as this is a Uni Project so just need to create a simple demo application with a couple buttons and using some Xamarin Widgets etc?
Thanks
If you search this error message, you can easily find the answer in this thread:
This is caused if you use the "Use host GPU" setting of the emulator
and it will disappear after you uncheck this option.
It is specific to the GPU emulation of the Android emulator.
So you can edit the gpu.mode when you create a Android wear round emulator to get rid of the error. There are also descriptions of each option at the right side:
I am using the latest build of VS 2015 with update 2 which has the Xamarin Framework installed as well. I am following this example here
I noticed that my code with the current framework that I have installed doesn't support this line global::Xamarin.Forms.Forms.Init(); shown in the windows phone section in part 2 here of the documentation. Neither does it support the PhoneCallTask class on point #27 in part 1
I am having a problem figuring out what Init takes as a parameter in global::Xamarin.Forms.Forms.Init();. Where can I find an example of what I should pass in of type IActivatedEventArgs?
Its not just the app in the Windows emulator that doesn't show anything on the emulator screen like in the screenshots. The app doesn't show any UI on the Droid or iOS emulators too.
I landed on these pages from here, so I assumed the examples showed to be fit for the latest release of VS2015. The documentation seems outdated for the latest framework here, or am I looking in the wrong place?
I am repeating a question posed on Xamarin forums by another user as there has been no solution (http://forums.xamarin.com/discussion/37139/debug-chaos). Since the update to Xamarin at the start of April.
I'm facing very strange debugging errors using Xamarin Studio.
1) Set a breakpoint in the IDE and it stops at the breakpoint with a nullreferenceexception, even when the breakpoint is set on a curly bracket of a function.
2) Move the breakpoint by 1 line and the nullreferenceexception will occur there instead.
I have tried to enable/disable fast deploy and mono shared runtime without changes, and fully reinstalled Xamarin Android and Xamarin Studio.
Any ideas? It's very frustrating to not be able to debug.
Update: Xamarin Studio v5.8.2, Xamarin.Android v4.20.0.37, Nexus 7 (2013) running Android 5.0.2
it is a related to drawable images problem, please do try it that remove image from layout file and then run application as same configure it will be run successfully.
this type of problem i face at staring but now i have the solution to how to handle it.
setting android images and icon is perfect hierarchy which is mention below images and also update your SDK.
I've develop a test application in Xamarin Studio (Android with C#) and wanted to test it on my phone.
The application worked just fine in the Device emulator (Same OS version) but when I install / open it on my phone, it just says "TestApplication stopped working" I know from the online search that thousands of issues could cause this error message but my questions is :
Is exporting my app on my droid as simple as :
Compiling the app
Taking the signed .apk in the .bin folder
Dragging that .apk on the phone (I'm using AirDroid to drag the file)
Running the .apk (installing the app)
Am I missing an obvious, magic step ?
I don't know how Xamarin Studio works, but this happened to me when trying the same, using Visual Studio.
I found out the application worked only when building in Release mode.
Not sure if Xamarin Studio has the same options (Debug / Release / etc)
I believe I'm a bit late here, but it seems time changed things.
What I had to do (and I can't seem to understand why it's not more intuitive than that) is to:
Right click on Solution
Archive
Follow the Wizard steps
Better instructions can be found here: https://learn.microsoft.com/pt-br/xamarin/android/deploy-test/signing/?tabs=windows