Cannot Resolve Symbol '@style/widget.design.coordinatorlayout'
I'm using the latest version of Android Studio (3.1.3) with build tools 28. The layout does not get rendered in the design tab when I'm using coordinator layout. Many have pointed
Solution 1:
Try (API 28)->
<stylename="AppTheme.NoActionBar"><!--<item name="coordinatorLayoutStyle">@style/Widget.Design.CoordinatorLayout</item>--><itemname="coordinatorLayoutStyle">@style/Widget.Support.CoordinatorLayout</item></style>
Solution 2:
This works in my version of studio (3.1.3):
Change this 2 lines in your gradle app file (build.gradle)
implementation 'com.android.support:appcompat-v7:28.0.0-alpha1'
implementation 'com.android.support:design:28.0.0-alpha1'
and resync.
Delete line
<itemname="coordinatorLayoutStyle">@style/Widget.Design.CoordinatorLayout</item>
if you still have it in your styles.xml file.
Solution 3:
Try this: @style/Widget.Support.CoordinatorLayout
Solution 4:
I Hope this will work for you.
implementation 'com.android.support:design:27.1.1'
add above line in app gradle file and instead of 27.1.1 use your library version(i.e 28.x.x)
Post a Comment for "Cannot Resolve Symbol '@style/widget.design.coordinatorlayout'"