Android Studio – Binary XML file line #20: Error inflating class fragment
I want to add an object to LinearLayout, but it throws an error Error line: at me.solo_team.futureleader.ui.news.NewsFragment.onCreateView(NewsFragment.java:62) ( addElement(uris.get(i),names.get(i));) NewsFragment private LayoutInflater inflater; private ViewGroup container; private LinearLayout nw; public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View…