Bug 55913 - Java.Lang.NoSuchMethodError: no method with name='setStateListAnimator' in AppCompat
Summary: Java.Lang.NoSuchMethodError: no method with name='setStateListAnimator' in Ap...
Status: RESOLVED NORESPONSE
Alias: None
Product: Android
Classification: Xamarin
Component: Android+BCL Integration ()
Version: unspecified
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Marek Habersack
URL:
Depends on:
Blocks:
 
Reported: 2017-05-03 12:51 UTC by e3dalive
Modified: 2017-08-23 21:04 UTC (History)
3 users (show)

Tags: bb
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED NORESPONSE

Description e3dalive 2017-05-03 12:51:25 UTC
I'm using latest xamarin version with appCompat, i've encountered very strange crash on Android api19, it happens when i have a TableView, inside of it i have ViewCell->Grid->and i add there button[simple default a.k.a. button=new Button() and grid.Children.Add(okbtn, 1, 2, 0, 1)). 
On newer androids 5.1 version and up there are no problems but, on older versions such as api19(ver 4.x) i get this error(this error didn't exist before untill i started using appCompat):
05-03 07:25:14.981 I/MonoDroid( 3581): UNHANDLED EXCEPTION:
05-03 07:25:15.011 I/MonoDroid( 3581): System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> Java.Lang.NoSuchMethodError: no method with name='setStateListAnimator' signature='(Landroid/animation/StateListAnimator;)V' in class Landroid/support/v7/widget/AppCompatButton;
05-03 07:25:15.011 I/MonoDroid( 3581):   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <d18287e1d683419a8ec3216fd78947b9>:0 
05-03 07:25:15.011 I/MonoDroid( 3581):   at Java.Interop.JniEnvironment+InstanceMethods.GetMethodID (Java.Interop.JniObjectReference type, System.String name, System.String signature) [0x0005b] in <ff680631f1d2453187af7f98d9e1e55d>:0 
05-03 07:25:15.011 I/MonoDroid( 3581):   at Java.Interop.JniType.GetInstanceMethod (System.String name, System.String signature) [0x0000c] in <ff680631f1d2453187af7f98d9e1e55d>:0 
05-03 07:25:15.011 I/MonoDroid( 3581):   at Java.Interop.JniPeerMembers+JniInstanceMethods.GetMethodInfo (System.String encodedMember) [0x00031] in <ff680631f1d2453187af7f98d9e1e55d>:0 
05-03 07:25:15.011 I/MonoDroid( 3581):   at Java.Interop.JniPeerMembers+JniInstanceMethods.InvokeVirtualVoidMethod (System.String encodedMember, Java.Interop.IJavaPeerable self, Java.Interop.JniArgumentValue* parameters) [0x00045] in <ff680631f1d2453187af7f98d9e1e55d>:0 
05-03 07:25:15.011 I/MonoDroid( 3581):   at Android.Views.View.set_StateListAnimator (Android.Animation.StateListAnimator value) [0x00031] in <016acab006ee4ef2aa5eff2c7a470bca>:0 
05-03 07:25:15.011 I/MonoDroid( 3581):   at Xamarin.Forms.Platform.Android.FastRenderers.ButtonRenderer.Initialize () <0x98b95d38 + 0x0003c> in <e6433e4b21ac4b38a1eaa5cf0f3d9c65>:0 
05-03 07:25:15.011 I/MonoDroid( 3581):   at Xamarin.Forms.Platform.Android.FastRenderers.ButtonRenderer..ctor () [0x00022] in C:\BuildAgent\work\ca3766cfc22354a1\Xamarin.Forms.Platform.Android\AppCompat\MasterDetailPageRenderer.cs:368 
05-03 07:25:15.011 I/MonoDroid( 3581):   at (wrapper managed-to-native) System.Reflection.MonoCMethod:InternalInvoke (System.Reflection.MonoCMethod,object,object[],System.Exception&)
05-03 07:25:15.011 I/MonoDroid( 3581):   at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters) [0x00002] in <d18287e1d683419a8ec3216fd78947b9>:0 
05-03 07:25:15.011 I/MonoDroid( 3581):    --- End of inner exception stack trace ---
05-03 07:25:15.011 I/MonoDroid( 3581):   at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters) [0x00017] in <d18287e1d683419a8ec3216fd78947b9>:0 
05-03 07:25:15.011 I/MonoDroid( 3581):   at System.RuntimeType.CreateInstanceMono (System.Boolean nonPublic) [0x000a8] in <d18287e1d683419a8ec3216fd78947b9>:0 
05-03 07:25:15.011 I/MonoDroid( 3581):   at System.RuntimeType.CreateInstanceSlow (System.Boolean publicOnly, System.Boolean skipCheckThis, System.Boolean fillCache, System.Threading.StackCrawlMark& stackMark) [0x00009] in <d18287e1d683419a8ec3216fd78947b9>:0 
05-03 07:25:15.011 I/MonoDroid( 3581):   at System.RuntimeType.CreateInstanceDefaultCtor (System.Boolean publicOnly, System.Boolean skipCheckThis, System.Boolean fillCache, System.Threading.StackCrawlMark& stackMark) [0x00027] in <d18287e1d683419a8ec3216fd78947b9>:0 
05-03 07:25:15.011 I/MonoDroid( 3581):   at System.Activator.CreateInstance (System.Type type, System.Boolean nonPublic) [0x0002c] in <d18287e1d683419a8ec3216fd78947b9>:0 
05-03 07:25:15.011 I/MonoDroid( 3581):   at System.Activator.CreateInstance (System.Type type) [0x00000] in <d18287e1d683419a8ec3216fd78947b9>:0 
05-03 07:25:15.011 I/MonoDroid( 3581):   at Xamarin.Forms.Internals.Registrar`1[TRegistrable].GetHandler (System.Type type) [0x00015] in C:\BuildAgent\work\ca3766cfc22354a1\Xamarin.Forms.Core\Registrar.cs:33 
05-03 07:25:15.011 I/MonoDroid( 3581):   at Xamarin.Forms.Internals.Registrar`1[TRegistrable].GetHandler[TOut] (System.Type type) [0x00000] in C:\BuildAgent\work\ca3766cfc22354a1\Xamarin.Forms.Core\Registrar.cs:39 
05-03 07:25:15.011 I/MonoDroid( 3581):   at Xamarin.Forms.Platform.Android.Platform.CreateRenderer (Xamarin.Forms.VisualElement element) [0x00000] in C:\BuildAgent\work\ca3766cfc22354a1\Xamarin.Forms.Platform.Android\Renderers\EntryRenderer.cs:47 
05-03 07:25:15.011 I/MonoDroid( 3581):   at Xamarin.Forms.Platform.Android.VisualElementPackager.AddChild (Xamarin.Forms.VisualElement view, Xamarin.Forms.Platform.Android.IVisualElementRenderer oldRenderer, Xamarin.Forms.Platform.Android.RendererPool pool, System.Boolean sameChildren) [0x00000] in C:\BuildAgent\work\ca3766cfc22354a1\Xamarin.Forms.Platform.Android\FastRenderers\GestureManager.cs:54 
05-03 07:25:15.011 I/MonoDroid( 3581):   at Xamarin.Forms.Platform.Android.VisualElementPackager.SetElement (Xamarin.Forms.VisualElement oldElement, Xamarin.Forms.VisualElement newElement) [0x00000] in C:\BuildAgent\work\ca3766cfc22354a1\Xamarin.Forms.Platform.Android\FastRenderers\LabelRenderer.cs:38 
05-03 07:25:15.011 I/MonoDroid( 3581):   at Xamarin.Forms.Platform.Android.VisualElementPackager.Load () [0x00000] in C:\BuildAgent\work\ca3766cfc22354a1\Xamarin.Forms.Platform.Android\FastRenderers\GestureManager.cs:46 
05-03 07:25:15.011 I/MonoDroid( 3581):   at Xamarin.Forms.Platform.Android.VisualElementRenderer`1[TElement].SetPackager (Xamarin.Forms.Platform.Android.VisualElementPackager packager) [0x00000] in C:\BuildAgent\work\ca3766cfc22354a1\Xamarin.Forms.Platform.Android\FastRenderers\ImageRenderer.cs:134 
05-03 07:25:15.011 I/MonoDroid( 3581):   at Xamarin.Forms.Platform.Android.VisualElementRenderer`1[TElement].SetElement (TElement element) [0x00026] in C:\BuildAgent\work\ca3766cfc22354a1\Xamarin.Forms.Platform.Android\FastRenderers\VisualElementRenderer.cs:96 
05-03 07:25:15.011 I/MonoDroid( 3581):   at Xamarin.Forms.Platform.Android.VisualElementRenderer`1[TElement].Xamarin.Forms.Platform.Android.IVisualElementRenderer.SetElement (Xamarin.Forms.VisualElement element) [0x0002d] in C:\BuildAgent\work\ca3766cfc22354a1\Xamarin.Forms.Platform.Android\FastRenderers\LabelRenderer.cs:292 
05-03 07:25:15.011 I/MonoDroid( 3581):   at Xamarin.Forms.Platform.Android.Platform.CreateRenderer (Xamarin.Forms.VisualElement element) [0x0001b] in C:\BuildAgent\work\ca3766cfc22354a1\Xamarin.Forms.Platform.Android\Renderers\EntryRenderer.cs:50 
05-03 07:25:15.011 I/MonoDroid( 3581):   at Xamarin.Forms.Platform.Android.ViewCellRenderer.GetCellCore (Xamarin.Forms.Cell item, Android.Views.View convertView, Android.Views.ViewGroup parent, Android.Content.Context context) [0x00000] in C:\BuildAgent\work\ca3766cfc22354a1\Xamarin.Forms.Platform.Android\Renderers\ButtonDrawable.cs:19 
05-03 07:25:15.011 I/MonoDroid( 3581):   at Xamarin.Forms.Platform.Android.CellRenderer.GetCell (Xamarin.Forms.Cell item, Android.Views.View convertView, Android.Views.ViewGroup parent, Android.Content.Context context) [0x0002a] in C:\BuildAgent\work\ca3766cfc22354a1\Xamarin.Forms.Platform.Android\NativeViewWrapper.cs:16 
05-03 07:25:15.011 I/MonoDroid( 3581):   at Xamarin.Forms.Platform.Android.CellFactory.GetCell (Xamarin.Forms.Cell item, Android.Views.View convertView, Android.Views.ViewGroup parent, Android.Content.Context context, Xamarin.Forms.View view) [0x0001d] in C:\BuildAgent\work\ca3766cfc22354a1\Xamarin.Forms.Platform.Android\InnerScaleListener.cs:44 
05-03 07:25:15.011 I/MonoDroid( 3581):   at Xamarin.Forms.Platform.Android.TableViewModelRenderer.GetView (System.Int32 position, Android.Views.View convertView, Android.Views.ViewGroup parent) [0x00000] in C:\BuildAgent\work\ca3766cfc22354a1\Xamarin.Forms.Platform.Android\FastRenderers\ButtonRenderer.cs:47 
05-03 07:25:15.011 I/MonoDroid( 3581):   at Android.Widget.BaseAdapter.n_GetView_ILandroid_view_View_Landroid_view_ViewGroup_ (System.IntPtr jnienv, System.IntPtr native__this, System.Int32 position, System.IntPtr native_convertView, System.IntPtr native_parent) [0x00018] in <016acab006ee4ef2aa5eff2c7a470bca>:0 
05-03 07:25:15.011 I/MonoDroid( 3581):   at (wrapper dynamic-method) System.Object:da467ac2-0e5a-4568-9ddb-87f1d8c51b09 (intptr,intptr,int,intptr,intptr)

I have setup my styles.xml and style.xml according to xamarin tutorials on integrating appcomat.
Here is the nuget list of packages i'm using: 
<?xml version="1.0" encoding="utf-8"?>
<packages>
  <package id="Acr.Settings" version="6.0.0" targetFramework="monoandroid71" />
  <package id="Acr.Support" version="2.1.0" targetFramework="monoandroid70" />
  <package id="Acr.UserDialogs" version="3.4.2" targetFramework="monoandroid71" />
  <package id="AndHUD" version="1.2.0" targetFramework="monoandroid70" />
  <package id="BouncyCastle.Crypto.dll" version="1.8.1" targetFramework="monoandroid70" />
  <package id="CarouselView.FormsPlugin" version="4.1.1" targetFramework="monoandroid71" />
  <package id="Microsoft.CSharp" version="4.3.0" targetFramework="monoandroid71" />
  <package id="Microsoft.NETCore.Platforms" version="1.1.0" targetFramework="monoandroid71" />
  <package id="Microsoft.Win32.Primitives" version="4.3.0" targetFramework="monoandroid71" />
  <package id="Mono.Data.Sqlite.Portable" version="1.0.3.5" targetFramework="monoandroid44" />
  <package id="NETStandard.Library" version="1.6.1" targetFramework="monoandroid71" />
  <package id="Newtonsoft.Json" version="10.0.2" targetFramework="monoandroid71" />
  <package id="OpenTK" version="2.0.0" targetFramework="monoandroid71" />
  <package id="Plugin.CurrentActivity" version="1.0.1" targetFramework="monoandroid70" />
  <package id="Plugin.Fingerprint" version="1.4.3" targetFramework="monoandroid71" />
  <package id="Plugin.Permissions" version="1.2.1" targetFramework="monoandroid70" />
  <package id="RestSharp" version="105.2.3" targetFramework="monoandroid70" />
  <package id="SkiaSharp" version="1.57.0" targetFramework="monoandroid71" />
  <package id="SkiaSharp.Svg" version="1.57.0" targetFramework="monoandroid71" />
  <package id="SkiaSharp.Views" version="1.57.0" targetFramework="monoandroid71" />
  <package id="SkiaSharp.Views.Forms" version="1.57.0" targetFramework="monoandroid71" />
  <package id="Splat" version="2.0.0" targetFramework="monoandroid71" />
  <package id="System.AppContext" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.Collections" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.Collections.Concurrent" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.ComponentModel.TypeConverter" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.Console" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.Diagnostics.Debug" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.Diagnostics.Tools" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.Diagnostics.Tracing" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.Globalization" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.Globalization.Calendars" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.IO" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.IO.Compression" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.IO.Compression.ZipFile" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.IO.FileSystem" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.IO.FileSystem.Primitives" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.Linq" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.Linq.Expressions" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.Net.Http" version="4.3.1" targetFramework="monoandroid71" />
  <package id="System.Net.Primitives" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.Net.Sockets" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.ObjectModel" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.Reflection" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.Reflection.Extensions" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.Reflection.Primitives" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.Resources.ResourceManager" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.Runtime" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.Runtime.Extensions" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.Runtime.Handles" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.Runtime.InteropServices" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.Runtime.InteropServices.RuntimeInformation" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.Runtime.Numerics" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.Runtime.Serialization.Formatters" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.Runtime.Serialization.Primitives" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.Security.Cryptography.Algorithms" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.Security.Cryptography.Encoding" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.Security.Cryptography.Primitives" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.Security.Cryptography.X509Certificates" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.Text.Encoding" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.Text.Encoding.Extensions" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.Text.RegularExpressions" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.Threading" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.Threading.Tasks" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.Threading.Timer" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.Xml.ReaderWriter" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.Xml.XDocument" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.Xml.XmlDocument" version="4.3.0" targetFramework="monoandroid71" />
  <package id="Xam.Plugin.Connectivity" version="2.4.0.66-beta" targetFramework="monoandroid70" />
  <package id="Xam.Plugin.Contacts" version="2.2.0.37-beta" targetFramework="monoandroid71" />
  <package id="Xam.Plugin.Geolocator" version="4.0.0.55-beta" targetFramework="monoandroid70" />
  <package id="Xamarin.Android.ShortcutBadger" version="1.1.809" targetFramework="monoandroid70" />
  <package id="Xamarin.Android.Support.Animated.Vector.Drawable" version="25.3.1" targetFramework="monoandroid71" />
  <package id="Xamarin.Android.Support.Annotations" version="25.3.1" targetFramework="monoandroid71" />
  <package id="Xamarin.Android.Support.Compat" version="25.3.1" targetFramework="monoandroid71" />
  <package id="Xamarin.Android.Support.Core.UI" version="25.3.1" targetFramework="monoandroid71" />
  <package id="Xamarin.Android.Support.Core.Utils" version="25.3.1" targetFramework="monoandroid71" />
  <package id="Xamarin.Android.Support.Design" version="25.3.1" targetFramework="monoandroid71" />
  <package id="Xamarin.Android.Support.Fragment" version="25.3.1" targetFramework="monoandroid71" />
  <package id="Xamarin.Android.Support.Media.Compat" version="25.3.1" targetFramework="monoandroid71" />
  <package id="Xamarin.Android.Support.Transition" version="25.3.1" targetFramework="monoandroid71" />
  <package id="Xamarin.Android.Support.v4" version="25.3.1" targetFramework="monoandroid71" />
  <package id="Xamarin.Android.Support.v7.AppCompat" version="25.3.1" targetFramework="monoandroid71" />
  <package id="Xamarin.Android.Support.v7.CardView" version="25.1.1" targetFramework="monoandroid71" />
  <package id="Xamarin.Android.Support.v7.MediaRouter" version="25.3.1" targetFramework="monoandroid71" />
  <package id="Xamarin.Android.Support.v7.Palette" version="25.3.1" targetFramework="monoandroid71" />
  <package id="Xamarin.Android.Support.v7.RecyclerView" version="25.3.1" targetFramework="monoandroid71" />
  <package id="Xamarin.Android.Support.Vector.Drawable" version="25.3.1" targetFramework="monoandroid71" />
  <package id="Xamarin.Build.Download" version="0.4.4-beta1" targetFramework="monoandroid71" />
  <package id="Xamarin.Controls.SignaturePad" version="1.5.1" targetFramework="monoandroid71" />
  <package id="Xamarin.Controls.SignaturePad.Forms" version="1.5.1" targetFramework="monoandroid71" />
  <package id="Xamarin.FFImageLoading" version="2.2.10-pre-364" targetFramework="monoandroid71" />
  <package id="Xamarin.FFImageLoading.Forms" version="2.2.10-pre-364" targetFramework="monoandroid71" />
  <package id="Xamarin.Forms" version="2.3.5.233-pre1" targetFramework="monoandroid71" />
</packages>
Comment 1 Mark McLemore 2017-06-26 22:07:46 UTC
Thank you for taking the time to submit the bug. We are unable to reproduce this issue. Please attach a reproduction to the bug by starting with a clean Xamarin.Android project and adding just the code necessary to demonstrate the issue.
Comment 2 Cody Beyer (MSFT) 2017-08-23 21:04:38 UTC
Because we have not received a reply to our request for more information we are closing this issue. If you are still encountering this issue, please reopen the ticket with the requested information. Thanks!