24

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 ?

hannes ach
  • 16,247
  • 7
  • 61
  • 84

3 Answers3

75

I found the solution, simply replace this line

android.support.design.R.

with

com.google.android.material.R.
hannes ach
  • 16,247
  • 7
  • 61
  • 84
0

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

import com.google.android.material.snackbar.Snackbar;
Zima
  • 156
  • 2
  • 14
0

For me, using react native, it was related to a library, react-native-snackbar. I uninstalled and resinstalled react-native-snackbar and it worked.

npm uninstall react-native-snackbar

npm i react-native-snackbar

Raphael Pinel
  • 2,352
  • 24
  • 26