New android solution issue, MainActivity.cs not found - xamarin

I tried to create an android solution using Xamarin studio but it always show me "MainActivity.cs not found!" error.I re-installed the software and the same issue appears. This error occurs when I try to create a new "Android application" Solution. After goggling it seems that my Xamarin.Android installation is not complete\corrupt but I am unable to get an installation link for it on the website.
can any one help me in this ?

I finally got this to work by
uninstalling everything,
turning off antivirus,
running the "recommended" Xamarin installer as an administrator
restarting my PC.
Hope this helps someone.

If you still searching for the solution.
This my understanding of cause and the solution.
Reason you are getting this error is because you do not have a correct right. You can see this by Xamarin Installation error exception - one of the parameter is privilege.
You need xamarin android installed to get this working!!
Xamarin is currently offering subscription and you are only have starter right.
search google "xamarin starter", go to the site down the xamarin installation again. follow the steps.
Once Xamarin Visual Studio got installed then this should be working..

Related

Unable to upload Xamarin.ios solution to TestFlight cause of following error:

We have an update scheduled for our iOS app which needs to be uploaded to TestFlight first. Hovever, just out of nowhere, the following error keeps preventing Visual Studio from uploading the solution to TestFlight:
This is a screenshot of the error
I am relatively new to this and have no clue where to look in VS. And I've already been searching everywhere online..
Some extra info:
Visual Studio for Mac (latest version)
macOS Big Sur (11.2.3 - latest)
I do believe this might have something to do with the implementation of Firebase into my app. But being a relative newbie, I'm also not entirely sure where to look..
I'd love to hear from anyone with a solution!!
I found the answer!
For some reason all I had to do was get rid of the old xCode version I had and download the latest from apple's website rather than the app store...

Xamarin Google API client does not exist?

I'm new to Xamarin unfortunately. I've been trying to create a simple page with a map on it using the Xamarin.Forms.Maps package, but upon building I run into about 92 errors all describing that various packages could not be found:
error: package com.google.android.gms.common.api.GoogleApiClient does not exist
error: package com.google.android.gms.common does not exist
error: package com.google.android.gms.maps.GoogleMap does not exist
error: package com.google.android.gms.maps does not exist
error: package com.google.android.gms.tasks does not exist
...and many others. My solution is a Cross-Platform Xamarin.Forms blank mobile app using a .NET class library which I have nothing but the NETStandard.Library, Xamarin.Forms and Xamarin.Forms.Maps packages installed on. I thought that I had set it up correctly according to the official Microsoft documentation, but I still get all these weird errors and searching online for a solution has not been much help. Can someone give me assistance? Let me know if I need to clarify anything.
I had exactly the same issue with the same 92 errors after upgrading my version of Xamarin.Forms to V3.0.0.561731 and installing the latest version of Xamarin.Forms.Maps in Visual Studio Community 2017.
I solved the issue by adding "Google Play Services" via the Android SDK Manager. The item can be found on the "Tools" tab of the Android SDK listed under "Extras".
Note: I had to come out of Visual Studio, and rebuild my solution, and it worked.
Make sure you have installed the nuget on your android project
Xamarin.GooglePlayServices.Base
and
Xamarin.GooglePlayServices.Maps
It's a google maps API requisite.
You can see an entire explanation on official documentation on this link: https://learn.microsoft.com/en-us/xamarin/android/platform/maps-and-location/maps/maps-api#google-maps-api-prerequisites
I had the same error.
For me the solution was to switch to the Visual Studio Preview Channel. I'm now on Version 15.8.0 Preview 2 and the error has gone away.
To get the Preview Channel you can download it here https://www.visualstudio.com/de/vs/preview/
Had this behavior but was because I only included Xamarin.Forms.Maps in PCL project. As soon as I added Xamarin.Forms.Maps also into Android (specially here) and iOS projects all compiled fine.

Xamarin Studio can't run Android application after update

Today I update Xamarin Studio, and like many times before, it's start crashing. The problem is that the Android application is installed but crash in lunch throwing the error:
NotSupportedException: Stack walks are not supported on this platform.
Did someone know how to fix it or what could be causing it?
This is a known bug, which is raised on Bugzilla. The only thing you can do right now is downgrade your Xamarin.Android.

Get provisioning profiles through Xamarin Studio 6.3

since xamarin integrated the new function in xamarin studio, where we can add the apple developer account through fastlane, I have problems getting my prov profiles.
I installed fastlane, added my account but after hitting on refresh nothing happens.
Could please someone give a hand here?
Thanks
I had the same issue. I'm running Xamarin Studio 6.3, on Sierra 10.12.4.
In my case, I was able to resolve it by clearing the directory ~/users/[your user]/library/mobiledevice/provisioningprofiles, then running "sigh download_all".
Well everything now is clear. This is an official bug and will be fixed in the 15.3 Version (current 15.1)
Check this for more information.

Unsupported Project Type Xamarin Store T-Shirt tutorial

I'm trying to get up and running with Xamarin and I've downloaded the tutorial t-shirt app from their site. When I open it in VS 2013 (update 2) the XamarinStore project in the solution can't load. It says the project type is unsupported.
I've uninstalled and reinstalled the latest Xamarin but still can't get it to work. Did anyone else have this issue? Any ideas how to solve it?
Thanks
My VS 2013 installation was poked. Reinstalled and all working now.
whistles

Resources