Xfx.Controls
Xfx.Controls copied to clipboard
Xfx ComboBox for floating labels showing exception- Java.Lang.NoSuchMethodError:
Exception
[ERROR] FATAL UNHANDLED EXCEPTION: Java.Lang.NoSuchMethodError: no method with name='setBackgroundTintList' signature='(Landroid/content/res/ColorStateList;)V' in class Landroid/view/View; 01-05 08:20:08.862 E/mono-rt (12780): at (wrapper dynamic-method) System.Object:dc6c2164-db1e-49f0-a517-fbd887a703b3 (intptr,intptr,intptr,intptr,intptr) 01-05 08:20:08.862 E/mono-rt (12780): --- End of managed Java.Lang.NoSuchMethodError stack trace --- 01-05 08:20:08.862 E/mono-rt (12780): java.lang.NoSuchMethodError: no method with name='setBackgroundTintList' signature='(Landroid/content/res/ColorStateList;)V' in class Landroid/view/View;
- Version Number of software: Visual studio 2017 15.5.2 latest version
- Version Number of Control: xfx controls stable version 1.1.3
- Application Tested On: Nexus5- 4.4.4 API-19
Are you using AppCompat on your MainActivity? https://github.com/XamFormsExtended/Xfx.Controls/blob/master/example/Xfx.Controls.Example.Droid/MainActivity.cs#L8
Yes, here is my MainActivity:
public class MainActivity : global::Xamarin.Forms.Platform.Android.FormsAppCompatActivity
{
protected override void OnCreate(Bundle bundle)
{
TabLayoutResource = Resource.Layout.Tabbar;
ToolbarResource = Resource.Layout.Toolbar;
base.OnCreate(bundle);
global::Xamarin.Forms.Forms.Init(this, bundle);
UserDialogs.Init(this);
LoadApplication(new App());
}
}
I'm looking at this a little now. Do you get the same issue on an XfxEntry?
Are you able to compile and test this change to see if it addresses your issue? (current Develop branch)
Yes sure.
On Jan 9, 2018 9:57 AM, "Chase Florell" [email protected] wrote:
Are you able to compile and test this change to see if it addresses your issue?
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/XamFormsExtended/Xfx.Controls/issues/45#issuecomment-356176765, or mute the thread https://github.com/notifications/unsubscribe-auth/AhgwFR2nZPkVDRRho7qINdz7BVstJFtcks5tIurKgaJpZM4RUdM9 .
It's working fine, when I used XfxEntry control.
did you try the new code in the develop branch?
I still need someone with an older device to test the develop branch to see if the changes made solve this error. I currently don't have access to a KitKat device.
Okay
Warm Regards, Nikita Jain Graduate Engineer Trainee
Systematix Infotech Pvt. Ltd. India | Australia | United Kingdom | United States Plot No. 67, PU-4 Commercial, Behind C21 Mall | AB Road Indore Mob: +91-898.943.2955 | *Tel:*0731-2570282| *Skype:*nikitajain.systematix *Website Address:*http://systematixinfotech.com
*Follow Us:*Facebook https://www.facebook.com/SystematixInfotech |Google+ https://plus.google.com/u/0/+Systematixinfotech/posts |LinkedIn https://www.linkedin.com/company/systematix-infotech-pvt.ltd | Twitter https://twitter.com/SystematixInfo
On Sun, Jan 21, 2018 at 9:28 PM, Chase Florell [email protected] wrote:
I still need someone with an older device to test the develop branch to see if the changes made solve this error. I currently don't have access to a KitKat device.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/XamFormsExtended/Xfx.Controls/issues/45#issuecomment-359258544, or mute the thread https://github.com/notifications/unsubscribe-auth/AhgwFbHWhLWqKcCOw7VV9zmnoorCl5CLks5tM16hgaJpZM4RUdM9 .
@ChaseFlorell Can you please update Nuget package with solution and last commit? I'm still getting this exact error
XfxComboBoxRendererDroid has the same issue and should use SupportBackgroundTintList instead of BackgroundTintList. I am using API level 18, where the NoSuchMethodError is thrown
I'm on a kitkat device, and the erro is still there
Is there any news on about this solution?