AndroidX package android.support.design.R does not exist-ThrowExceptions

Exception or error:

When I convert my Project to AndroidX I run into

error: package android.support.design.R does not exist
                     android.support.design.R.styleable.FloatingActionButton_Behavior_Layout);

any clue how to solve it ?

How to solve:

I found the solution, simply replace

android.support.design.R.

with

com.google.android.material.R.

###

I just remove android.support.design from start of it.Android Studio added appropriate import i needed.

import com.google.android.material.snackbar.Snackbar;

Leave a Reply

Your email address will not be published. Required fields are marked *