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.

Android Studio 3.5 or above usb device not detected in Android Studio or Unable to detect adb version, exit value: 0xc0000135. ADB depends on the Windows Universal C Runtime, which is usually installed by default via Windows Update. You may need to manually fetch and install the runtime package here:

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