Cannot resolve symbol 'photo_recycle_view'

This is my

public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
View v = inflater.inflate(R.layout.fragment_photo_gallery, container, false);

        mPhotoRecyclerView = (RecyclerView) v.findViewById(;
        mPhotoRecyclerView.setLayoutManager(new GridLayoutManager(getActivity(), 3));

        return v;

and dependency is

dependencies {
implementation fileTree(include: [’*.jar’], dir: ‘libs’)
implementation ‘’
implementation ‘’
testImplementation ‘junit:junit:4.12’
androidTestImplementation ‘’
androidTestImplementation ‘’
implementation ‘’

I added the recycle but, ‘cannot resolve symbol’ error doesn’t disappear.
Restart wasnt worked too

Please check your layout file. Whether the id name is defined as “photo_recycler_view” instead?