Error:java.lang.IllegalArgumentException: The style on this component requires your app theme to be Theme.MaterialComponents (or a descendant). at at at at at at at at at at com.demo.nspl.restaurantlite.Navigation_Drawer.SalesFragment.getFilterChip( at com.demo.nspl.restaurantlite.Navigation_Drawer.SalesFragment.lambda$onCreateView$0( at com.demo.nspl.restaurantlite.Navigation_Drawer.-$$Lambda$SalesFragment$KCm-iiczjdYbpiNmaNw12gtFOoQ.onClick(lambda) at android.view.View.performClick( at android.view.View$ at android.os.Handler.handleCallback( at android.os.Handler.dispatchMessage( at android.os.Looper.loop( at at java.lang.reflect.Method.invoke(Native Method) at$ at

The Error while importing AndroidX or while using Chip or ChipGroup.

1) Solution:-

2) Solution:- 

      1) GOTO To styles.xml:-

       Change Theme.AppCompat.Light.DarkActionBar         to Theme.MaterialComponents.Light.DarkActionBar 

As Shown in Image Below:-


Post a Comment

Popular posts from this blog

Lint found fatal errors while assembling a release target.

Windows 7 all Version 64-Bit iso file Download with crack activation. (Google Drive Link)

ViewModelProviders.of(this) is deprecated what to use instead ViewModelProviders.of(this) OR if you don't want to use ViewmodelFactory OR ViewModelProviders error.