[Solved] Why does my View.findViewById return null?


  mLanguageLogoImageView = itemView.findViewById(R.id.language_logo);
  mLanguageNameTextView = itemView.findViewById(R.id.language_name);
  mLanguageRankTextView = itemView.findViewById(R.id.language_rank);

NullPointerException is thrown when an application attempts to use an object reference that has the null value.

At first check your all findViewById elements present in respective xml (R.layout.list_item_language) or not.

0

solved Why does my View.findViewById return null?