Posts

Showing posts with the label Xamarin Forms

Donate

Xamarin Forms Error - adb is not recognized as an internal or external command

Image
Good day! Following a tutorial on Xamarin.Forms, I encountered this issue namely " adb is not recognized as an internal or external command " when running adb commands in command prompt. After doing some research for answers to this problem, I came up with the steps to make it work. First is to locate the path of the adb application which can be found in android-sdk->platform-tools folder Next is to go to System Properties and open Environment Variables form. Under System variables, locate the Path entry and click the Edit button. Copy the folder path of the adb.exe application and add it as a new entry to the System variable Path. Click Ok and restart your computer. The adb command should work as expected.

Xamarin Forms Project - Project Not Selected To Build For This Solution Configuration

Image
Hello and Happy Easter! A while ago I was downloading some Xamarin Forms projects from Github for testing and research purposes. Upon running the projects, it won't show on the Android emulator and in the Visual Studio IDE, a notification shows that the project was skipped in deployment with a detailed statement like "Project Not Selected To Build For This Solution Configuration" . I found the solution which is to right click on the Solution of the project -> Select Configuration Manager. If you notice, the Deploy checkbox is unchecked. Changing the state to checked solved the issue. I can now run the projects using the Android emulator. Cheers!

XAML Hot Reload Is Disabled Because It Requires Xamarin.Forms 5.0.0.2012 Or Newer -In Visual Studio 2019

Image
Hello, I downloaded a couple of Xamarin Forms applications written in Visual Studio 2017 and debugged them using Visual Studio 2019. When running these projects, a notification appears below the toolbar that says "XAML Hot Reload Is Disabled Because It Requires Xamarin.Forms 5.0.0.2012 Or Newer". I then proceed with Updating the Xamarin.Forms Packages for these projects and another issue came up which is "The $(TargetFrameworkVersion) for Project_name.Android (v8.1) is less than the minimum required $(TargetFrameworkVersion) for Xamarin.Forms (10.0)." . The solution to this error led me to StackOverflow that is to change a couple of Application and Application Manifest settings for the Android project. Changing the Compiled using Android version and Target Android version made the error go away. Application Tab. Change the Android version target from Android 8.1 to Android 11. Application Manifest Tab. Change the Android version target from Android 8.1

Xamarin Forms - Waiting for the emulator is ready In Visual Studio 2019

Image
Hello, I've experienced this error lately when running my Xamarin Forms project. The emulator loads on screen without the UI and in Visual Studio's output window, it says Waiting for the emulator is ready. It's just like waiting for the emulator to load forever. After trying out some accepted solutions, deleting and adding back the emulator works for me. First is to open the Android Device manager in Visual Studio IDE. Go to Tools Menu -> Android -> Android Device Manager. Delete the existing emulator and add it back again. In my current setup it's " Pixel 2 Pie 9.0 - API 28 ". After deleting and adding back the emulator, my Xamarin Forms app shows in the emulator. Cheers!

Visual Studio Nuget Package Restore Error - The type or namespace name 'Xamarin' could not be found

Image
Good evening, Recently, I encountered an error called "The type or namespace name 'Xamarin' could not be found (are you missing a using directive or an assembly reference?)" when running my simple Xamarin Forms application in Visual Studio 2019 which is the output of the training I attended with. It seems that the project is missing some references and when running the solution, the project was unable to download the missing assemblies. After investigating the problem, I found the culprit. Our custom Nuget packages were located in a server which has been turned off due to system upgrades and these files will be moved to a new location. So to fix the issue I had to perform the steps below: 1. Temporarily unchecked our custom built packages in Package Sources of Package Manager Settings since our server that contains those packages was turned off for system maintenance and the projects including the packages will be moved to a new location. 2. Run the command &q

Donate