If you are creating an issue for a BUG please fill out this information. If you are asking a question or requesting a feature you can delete the sections below.
Failure to fill out this information will result in this issue being closed. If you post a full stack trace in a bug it will be closed, please post it to http://gist.github.com and then post the link here.
Version Number of Plugin: 2.6.2 and 3.1.1
Device Tested On: Zenfone 2
Simulator Tested On: none
Version of VS: 2015 Comunnity 3
Version of Xamarin: 4.8.188
Versions of other things you are using:
Version previous to SDK 25 in android was working fine. After updated the SDK and Plugin version, it stopped working.
Using FormsAppCompatActivity in Android
Not block the app and allow to use camera
LoadApplication(new App) is giving the following exception:
System.NullReferenceException: Object reference not set to an instance of an object.
at Xamarin.Forms.Platform.Android.FormsAppCompatActivity.InternalSetPage (Xamarin.Forms.Page page) [0x0005e] in D:\agent_work\1\s\Xamarin.Forms.Platform.Android\AppCompat\FormsAppCompatActivity.cs:315
at Xamarin.Forms.Platform.Android.FormsAppCompatActivity.SetMainPage () [0x00000] in D:\agent_work\1\s\Xamarin.Forms.Platform.Android\AppCompat\FormsAppCompatActivity.cs:343
at Xamarin.Forms.Platform.Android.FormsAppCompatActivity.LoadApplication (Xamarin.Forms.Application application) [0x0025c] in D:\agent_work\1\s\Xamarin.Forms.Platform.Android\AppCompat\FormsAppCompatActivity.cs:139
at Shappa.Droid.MainActivity+
https://gist.github.com/alwydl/e440f3e3745947ec4ad88597606a1a2f
If I take out the initialization process added for this new version (override permission, assemblyInfo and manifest) it enters the App class, but the camera does not work.
I have the same issue!
Plugin Version 3.1.2
What version of Xamarin.Forms? Probably a regression on their part.
Xamarin.Forms v2.5.0.122203
It works with Visual Studio v15.4.2!
It's not working on my local development computer. I have installed Visual Studio v15.5.3
It was the latest Version of forms here too. But Ive made a rollback and kept it downgraded for now.
My VS is 2015, 14.0.25431.01 update 3 (but I dont think it is this)
Should be reported against Xamarin.Forms or Xamarin.Android repos as it has nothing to do with the plugin that I can tell.
this happened to me too. Cleaning the solution, closing visual studio, deleting all obj and bin folder, restarting studio, rebuilding and trying again helped.
Same here. Delete bin/obj, clean rebuild helped me too.
Hope someday xamarin will be idempotent to rebuilds. :(
Hope you don't mind me updating this thread here, it's what the search engine turns up with for this error:
I found this error to be caused by the Resources/values/styles.xml file in my Xamarin.Android project - in particular, I've resolved it by removing the "android:" prefix from the name of each item node.
I came here from Google as well. For me it was solved by unchecking "Enable ProGuard" in Android options.
See this Bug in Xamarin. I had to downgrade from Xamarin.Android.Support.* versions 27.0.2 to 26.1.0.1.
https://bugzilla.xamarin.com/show_bug.cgi?id=36287
@developMediaSoft
This seems to have fixed the issue for me too. I had an "android:textAllCaps" and "android:windowNoTitle" item in styles.xml, removing the "android:" from them seems to resolve the issue
Same a @wireless-r , just unchecking "Enable Proguard" (not touching anything else) on release build did work around the issue.
This is an issue with X.F and it is tracked here: https://github.com/xamarin/Xamarin.Forms/issues/2148
Most helpful comment
this happened to me too. Cleaning the solution, closing visual studio, deleting all obj and bin folder, restarting studio, rebuilding and trying again helped.