Questions tagged [xamarin.android]

Xamarin.Android (previously known as Mono for Android) is an implementation of Mono that runs on the Android platform, allowing you to write Android applications in C# using native Android libraries as well as using the .NET BCL (Base Class Libraries). Use this tag for issues that only occur when using Xamarin.Android, or when using Android-specific features.

Xamarin.Android (previously known as Mono for Android) is an implementation of Mono that runs on the Android platform, allowing you to write Android applications in C# using native Android libraries.

###Links:

18757 questions
38
votes
18 answers

"java.exe" exited with code 2 Xamarin.Android project

so I have my Xamarin.Android project which contains several libraries. When I try to build I receive an error which says "java.exe" exited with code 2. After some hours of google research I found out that I could enable Multidex. According to the…
Daniel_97
  • 891
  • 1
  • 8
  • 15
38
votes
9 answers

The Operation could not be completed: Invalid Pointer

Update: Below you will find answers that are mostly connected to ASP.NET issues and not the question I originally had. If you have any issues regarding ASP.NET scroll down and ignore the Answer that is marked as solution, as I had some extremely…
EaranMaleasi
  • 895
  • 1
  • 13
  • 32
36
votes
14 answers

Xamarin remove app title

I'm struggling with the dumbest thing (I guess I'm just not used to the Xamarin Designer). How can I remove the title of my app ? It keeps showing up but it is not in my Layout Source. I want to remove this whole part but can't figure out how. In C#…
phadaphunk
  • 12,785
  • 15
  • 73
  • 107
33
votes
6 answers

Xamarin: Connect to locally hosted web service

I want to create a web api application to connect xamarin with android. I had tried a lot, but some connection errors are coming. My code is given below: public async Task find(int ID) { using (HttpClient client = new…
jayeshmon kj
  • 331
  • 1
  • 3
  • 3
33
votes
10 answers

Black screen before Splash screen appear in android

We know that when the app do some long process like downloading some information from internet it could show a splash screen before loading the application and when the app is loaded completely it will display the main page. In splash screen…
Husein Behboudi Rad
  • 5,434
  • 11
  • 57
  • 115
32
votes
25 answers

The "ResolveLibraryProjectImports" task failed unexpectedly

I have a Xamarin project, which is based on MvvmCross. The project is for both iOS and Android. I opened this project in Visual Studio 15. I got some errors, which I solved in no time. There are some errors, which are stuck and I couldn't solve them…
Zaeem Sattar
  • 990
  • 2
  • 12
  • 30
32
votes
5 answers

Write device platform specific code in Xamarin.Forms

I have the following Xamarin.Forms.ContentPage class structure public class MyPage : ContentPage { public MyPage() { //do work to initialize MyPage } public void LogIn(object sender, EventArgs eventArgs) { bool…
Michael Kniskern
  • 24,792
  • 68
  • 164
  • 231
32
votes
4 answers

jar-Binding of ActionBarSherlock for Mono for Android

I'like to bind the jar-library of ActionBarSherlock in my Mono For Android project. I am reverencing to this documentation: http://docs.xamarin.com/android/tutorials/Binding_a_Java_Library_(.jar) I have successfully bound android-support-v4.jar…
Flo
  • 459
  • 4
  • 7
31
votes
5 answers

Is MonoGame reliable?

I'm looking for a cross-platform game development framework. MonoGame looks easy to learn and fast to develop, but I see most of the games featured at their page do not work, or have a lot of bugs. Can anyone explain if MonoGame is reliable for…
xus
  • 2,587
  • 8
  • 31
  • 44
31
votes
1 answer

Xamarin - How to update Mono.Android version to resolve dependencies?

I'm trying to install a nuget package (Xamarin.Firebase.Firestore) which requires a newer version of Xamarin.GooglePlayServices.Basement (60.1142.0, I have 42.1021.1), which in turn requires me to update the xamarin.android.support packages. When I…
Ibraheem Nofal
  • 487
  • 1
  • 6
  • 13
31
votes
2 answers

Prevent Orientation change in Xamarin Android Application

Is it possible to prevent the orientation of an Android application from changing ? I have an application that previews the phone camera and I would like the orientation not to change. I have tried adding this to the manifest but it did not make a…
G-Man
  • 7,232
  • 18
  • 72
  • 100
30
votes
3 answers

Invalid value 'armeabi' in $(AndroidSupportedAbis). This ABI is no longer supported. Xamarin.Forms - VS2019

I have a Mobile App built with Xamarin.Forms when I am trying to upgrade my project from VS2017 to VS2019 I get this error in Android Project Invalid value 'armeabi' in $(AndroidSupportedAbis). This ABI is no longer supported. Please update your…
30
votes
4 answers

Xamarin Android Build Failed "Invalid value for outputAssembly"

A few days ago my solution seemed to work fine, but today all of the sudden the Android project doesn't build. I get no Error, but I do get the following output: 1>Build started. 1>Project "MyApp.Android.csproj" (Install target(s)): 1>Project…
JeroenM
  • 807
  • 1
  • 11
  • 26
30
votes
3 answers

Xamarin build action warning XA0101

I'm getting following warning while building the Xamarin Android project. Warning XA0101: @(Content) build action is not supported (XA0101) For this topic I found resources below, but I can't figure out the solution to get rid of this warning. Can…
Andree
  • 1,159
  • 2
  • 17
  • 32
29
votes
3 answers

Implementing IJavaObject on MonoDroid

I'm currently trying to implement an ILocationListener on a class in order to receive GPS updates - this is not on an Activity, just a normal C# class. As part of the ILocationListener contract I need to support I JavaObject: public IntPtr…
Stuart
  • 66,722
  • 7
  • 114
  • 165