Error: cannot find symbol variable LOLLIPOP
问题 I have seen many examples in different android libraries about detecting if device is LOLLIPOP supported or not. But when I use it in my app, it is throwing the following error: Error:(20, 60) error: cannot find symbol variable LOLLIPOP For example my source code is: static boolean isLollipop() { return Build.VERSION.SDK_INT == Build.VERSION_CODES.LOLLIPOP || Build.VERSION.SDK_INT == Build.VERSION_CODES.LOLLIPOP_MR1; } I am using the latest version of Android Studio with all packages updated