Macbook Air crashes whenever I close my Android emulator and reboots with error message. I have latest version of HAXM (7.3.2).
I don't find any proper answer on this topic but as my personal experience this happens due to extra load on memory while working on big Android projects and can be checked in memory monitor while building your app. So, now I am using real device instead of emulator and it's working fine.
Related
Spent all weekend updating Visual Studio to 17.4.3. Removed my old Android Simulator -- had to clear up space for the upgrade because my 128GB SSD got filed up.
Anyways, trying out the Maui framework, run the new Welcome app on Android Simulator (pixel 5 api 31). It takes a whopping full minute just for the emulator to boot up, and then another 1.5 minutes to deploy and finally see the welcome screen.
I do not think this is normal. I spent all night trying to enable hardware acceleration on the emulator, but I believe the HAXM options was always turned on.
Any tip for how I can tune up my android emulator performance? It was really fast before my MAUI upgrade when I used good-old Xamarin.
Visual Studio 2019
I recently upgraded Xamarin.Forms to version v4.5.0.530. This required me to upgrade xCode on the Mac to 11.4. This required me to upgrade the Mac OS to Catalina. OK I did all of that. Since then though:
If I run the project on the iPhone connected to the Mac it still WORKS fine (as before).
However, if I try and use one of the emulators on the PC (ipad etc) it FAILS to deploy with the following message:
Selected device is not a physical device. Please select a valid device before deploying the application.
Well obviously it is not a physical device!?!
Of course I am doing everything the same way I did it before the upgrade, choosing Debug, iPhoneSimulator, my iOS project, iPad Pro (9.7... etc)
So, it works on the physical iphone but not on any of the apple emulators (android phone/emulators work fine).
Has anyone any ideas why this might be?
It was a setting at Solution level. For some reason with 'iPhoneSimulator' selected at the top, against the iOS project 'iphone' was selected. Changed it to 'iPhoneSimulator' and all is good in the world again.
Every time I try to launch an AVD in Android Studio 3.0, it crashes my entire laptop. I'm on MacOS 10.13 (High Sierra), and the crash happens when qemu launches (it never gets close to actually emulating a device). I have deleted all existing AVD devices, uninstalled and reinstalled Android Studio, the emulator (and HAXM), and even used homebrew to install qemu separately (to see if there was a different version that would NOT crash).
I have no idea where else to look or what else to do... I can run my app successfully on my phone that is connected, but just can't use the emulators at all.
Anyone have any ideas?
I have been trying to run basic Android App provided by Visual Studio 2015 via XAMARIN Android Player. Program gets build and deployed successfully, yet, App or anything does not appear on screen. Xamarin Player takes more than 20 mins to start and then nothing happens. Find Screenshots as well.
WIthin the Android SDK Manager look under Extras there is an package called Intel x86 Emulator Accelerator (HAXM Installer). Installing HAXM will increase the speed of the emulator when you use the Intel Atom CPU/ABI
Also when creating the emulator device check Use Host GPU for increaded performance.
I ran into few issues with Xamarin Android Player as well. Currently I am using Genymotion Emulator and it is much faster.
Well, Well, Well, I got my thing up and running. Following are the steps I performed:
After installing Xamarin for VS2015, I checked for latest Android SDK via SDK Manager. Got all the necessary updates installed.
Installed Xamarin Android Player and used emulator Nexus 5 KitKat API level 19.
Earlier I was using Nexus 5 Lollipop, was the reason why, it was not working. May be its not fixed for buil yet.
As, described by Mr.Pilatus in above answer, the particular HAXM things surely does help in accelerating emulator.
Got my Android app running.
Thank you all for all the necessary suggestion and guiding my in my baby steps in XAMARIN development. Gracias. NAMASTE!
I am trying to update a 7.1 app from the store. For some reason it crashes only when installed from the store and only on 7.1 or 7.8 devices. My Lumia 920 with the latest updates works fine. The app runs fine if installed from VS 2010 or VS 2012. Of course all emulators worked fine. I put a Messagebox at Application_UnhandledException and it displayed this:
The type 'MyApp.MainPage', specified in the x:Class of
'/MainPage.xaml' could not be found in any loaded assembly.
Of course the MainPage class is there.
The app uses GPS and bing map and has capabilities:
ID_CAP_LOCATION
ID_CAP_NETWORKING
Can anyone shed some light on this?
I have just solved a similar problem where I had this error message when running from Visual Studio on my phone but not in an emulator. My problem was that I had different versions of the Microsoft.Live Assemblies in my 'main' app and the Assembly which contained the 'MainPage.xaml'.
I had a weird issue where my app worked differently from the store than on my device and the emulator. In my case it was because of trial mode. Apps run as though they are purchased when deployed to the emulator or device. It worked on my device from the store too, but that's because I bought it. Any other device which had not bought it ran in trial mode, and that's why it worked differently. I am betting that is why you are experiencing this crash. If it is not then we'll need more information.