Android Gradle: can't find symbol variable
问题 I have a error when building with gradle that says, error: cannot find symbol variable [image_name] . I'm using ContextCompat.getDrawable(getActivity(), R.drawable.[image_name]) I have been googling all over until I found this method to get a drawable without using a deprecated method or setting my min sdk to 21. But now, gradle says it can't find a symbol variable. I have my image in the drawable folder. If you need anything, comment please. EDIT: res: drawable (images under here) drawable