Xfx.Controls icon indicating copy to clipboard operation
Xfx.Controls copied to clipboard

Xfx ComboBox for floating labels showing exception- Java.Lang.NoSuchMethodError:

Open Nikitajain1121 opened this issue 7 years ago • 12 comments
trafficstars

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

Nikitajain1121 avatar Jan 05 '18 13:01 Nikitajain1121

Are you using AppCompat on your MainActivity? https://github.com/XamFormsExtended/Xfx.Controls/blob/master/example/Xfx.Controls.Example.Droid/MainActivity.cs#L8

ChaseFlorell avatar Jan 05 '18 16:01 ChaseFlorell

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());
        }
    }

Nikitajain1121 avatar Jan 08 '18 04:01 Nikitajain1121

I'm looking at this a little now. Do you get the same issue on an XfxEntry?

ChaseFlorell avatar Jan 08 '18 21:01 ChaseFlorell

Are you able to compile and test this change to see if it addresses your issue? (current Develop branch)

ChaseFlorell avatar Jan 09 '18 04:01 ChaseFlorell

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 .

Nikitajain1121 avatar Jan 09 '18 04:01 Nikitajain1121

It's working fine, when I used XfxEntry control.

Nikitajain1121 avatar Jan 09 '18 06:01 Nikitajain1121

did you try the new code in the develop branch?

ChaseFlorell avatar Jan 10 '18 13:01 ChaseFlorell

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.

ChaseFlorell avatar Jan 21 '18 15:01 ChaseFlorell

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 .

Nikitajain1121 avatar Jan 22 '18 13:01 Nikitajain1121

@ChaseFlorell Can you please update Nuget package with solution and last commit? I'm still getting this exact error

gauris26 avatar Mar 19 '18 04:03 gauris26

XfxComboBoxRendererDroid has the same issue and should use SupportBackgroundTintList instead of BackgroundTintList. I am using API level 18, where the NoSuchMethodError is thrown

mazloumi avatar Apr 09 '18 05:04 mazloumi

I'm on a kitkat device, and the erro is still there

Is there any news on about this solution?

rodrigueslg avatar Jul 16 '18 16:07 rodrigueslg