I am new to Xamarin development but want to learn the basics. I can't make my android emulator Pixel 3 x86 Android 9 Pie to open and see the very default app. System UI isn`t responding is the main error. I tried almost everything I've found online. I have considered installing an older version of VS but I am not sure. Can you help please?
Related
I'm new to MAUI so I followed the instructions on Microsoft's Build Your First App page. I ran the Android emulator and everything worked fine.
I then followed this page to build a flashlight app, but when I ran it, the emulator started fine, but the app never loaded.
In the output window in Visual Studio, I saw this:
[mono] debugger-agent: Unable to connect to 10.0.2.2:54762
I created a brand new .NET MAUI app, made no changes and ran that, same result.
I followed the deployment issues section on this page to no avail.
Also, when I ran sdkmanager --update, I got the following output:
[=== ] 10% Computing updates...
Updating:
platform-tools
emulator
Warning: Failed to read or create install properties file.
[=== ] 10% Installing Android Emulator
where it's saying it failed to read/install the properties file.
I also tried Razwill-1930's answer on this page, again, to no avail.
I'm running .NET 6 in Visual Studio 17.3.5 on Windows 11 Pro.
What am I doing wrong?
Update
I downloaded another emulator and that one works fine, which for my purposes, I'm OK with not being able to use the Pixel 6 emulator that gets installed with the .NET MAUI workload in VS. How can I get it going?
I ended up deleting the emulator (Pixel 5 - API 31) and then reinstalling it.
That worked.
Not sure why that worked, the Android Device Manager didn't re-download the files.
Hey, banging the TV sometimes works too.
The issue is with your emulator, I would highly recommend you recreate the emulator. Points to remember when doing so:
Make sure you have the latest version of the API version's Image
Select Arm64 as your processor (has lesser lag).
Hardware-based GUI has better performance.
Just FYI Assigning too much RAM won't make it faster
I started a project on Unity and I would like to test it on an Android device, but I am unable to do so. I researched every tutorial out there and couldn't find a solution that worked for me. Note: I have been using Android Studio and I am able to launch apps both through an emulator and a USB phone.
I am pretty sure I correctly chose all the settings inside of Unity
(followed every single tutorial I could find).
Turned on developer mode on phone and tried multiple setting
variations that I could find on the web.
Made sure all the drivers are installed correctly (wouldn't be able
to do stuff through Android Studio if I haven't).
Uninstalled Unity and Unity Remote 5 multiple times.
JDK and NDK seem to be working fine. Tried turning adb server on and
off multiple times. Also I can see my device with the 'adb devices'
command.
I had some issues with MalwareBytes when installing Unity. I did try
granting permissions to every Unity folder I could find, but I think
MalwareBytes could be the culprit.
Has anyone encountered a similar issue? Is there another thing I could try? Any help is apreciated.
EDIT: I switched my VPN to a VPN that allows open source software and I also uninstalled Malwarebytes and replaced it with Avira. Did not fix the issue.
I did not run in exact same issue, but working with Unity remote might be a little tricky.
It may require to launch Unity remote first before launching Unity itself. And I hope did not forget to ProjectSettings -> Editor -> Any Android Device option to be set. I'm talking about Window OS.
I had the same issue today. I also did everything was mentioned in tutorials and nothing helped.
Then I noticed that when I press 'Play' there's a message in the console "Set-up Android SDK path to make Android remote work in Unity". After I went to 'Edit'->'Preferencies' I unchecked the 'Android SDK Tools Installed with Unity(recommended)', then closed Unity, opened it again and checked the box again.
It worked for me, I hope it will help you too :)
When you connect your phone to your PC, you may chose the file transfer option in your Android device, but charge mode worked for me, this is what I did:
1-Make sure that the "Any Android Device" option in Project Settings/Editor, is enabled and close unity.
2-Open the Unity remote app in the phone and connect it to the PC, in charge only mode.
3-Open Unity and run the game
This method worked for me, I hope it works for you too.
i started recently working on a app for mobile devices with xamarin forms. To work on the GUI fluently i tried this:
Live Reload Preview
It worked with the Visual Studio Android Emulator. But i want to work with google's emulator becaus of the more recent updates. I get in VS the message, that LiveReload is enabled but not listening. So i tried a view things with the "Hostname" and "Port" field within the settings of live reload in VS. If i use the command "adb devices" i can see the emulator and it's port (5554 in my case).
Should Hostname stay at localhost? Or did i miss something? The project worked fine with VS Android Emulator and the Live Reload extension. So i can at least exclude a mistake in my code.
Would be great if there's someone who could help :)
Thanks a lot!!
I've been using this certain application among previous windows versions (Windows XP-Vista-7-8-8.1) and it has worked perfectly without having any issues, after upgrading to Windows 10 though it started showing EAccessViolation error and spams the place with message boxes saying "Runtime error at XXXX" (memory address)
So what I've been trying to achieve is creating a program in C# which runs the application under all compatibility modes one by one, to check which one works and which one doesn't - and sadly, none of them did.
The application is not mine and has stopped development.
Do you guys have any idea what has changed in Windows 10 code-wise, and how am I able to fix this issue? Is there a way to fully emulate another windows version and run it for this application alone? (Without having to set up a Virtual PC or anything)
Thank you in advance.
Note: Microsoft said that Windows 10 is completely backwards compatible, which it doesn't seem like it? The application does not use any driver, it's just a standalone EXE coded in C++/Lua.
Note2: The EXE calls a DLL which might be outdated for Windows 10, any idea what to do about the DLL? Is there a way to make it work as it did in previous windows?
You can help prevent these kinds of errors from occurring by updating your device drivers after formatting and reinstalling your operating system or installing a Windows Updates. Always install the latest Windows Updates before going through and updating your device drivers.
Why is trying to use the Windows Phone SDK (Any version) so problematic? I have tried to install WP8 on my Windows 8 machine with Visual Studio 2012 Ultimate and despite a month of troubleshooting and searching, not a single thing has fixed the issue. First of all, the WP8 installer tells me that my OS is not Windows 8 - then it tells me that my version of the .NET Framework is not supported (I have every version from 3.0 up to 4.5). As a last resort, I tried running the installer in compatibility mode but that option is not even available for the installer.
And then I looked in my Start menu and found a folder named Visual Studio 2010 Express. I expanded this folder and to my surprise, it had Visual Studio 2010 Express for Windows Phone.Ink (WP7.0 and WP7.1) in there - so I opened it. Everything seemed to be going just fine. I created a new project "PhoneApp1" and without writing any code or making any changes, I hit the debug button - and this is what I get:
It says "Run the program without getting help". So I clicked it. And then this happens:
Click OK...
Click NO...
Connection failed because of invalid command line arguments.
Now we get the error message. Not very helpful, but I went searching online and I dug as deep as I could in Google results and I think I've tried atleast 20 different sites and even more "solutions" but not a single one of the solutions even worked.
Hass anybody had this exact same issue? How did you fix it?
Please don't tell me to install WP8 SDK unless you also have a solution that works for that.
try to install win8 ultimateļ¼because i think wp8 is just compatible with win 8 RTM.
about wp7,i have no idea, but win 8 is compatible with those wp7 and wp8
The Best solution is to install Windows 8 Pro or higher and install either WP SDK 8 or 7.1. You can have both VS versions side by side.
And if that is not possible right now, for time being your problem may be solved by installing Windows Phone SDK 7.1.1 Update. Which makes the WP 7.1 SDK compatible with Windows 8 And also adds the Emulator supprot for 256MB RAM devices. Your screen shot indicates that you did not have this 7.1.1 update.