首页 > 解决方案 > onCreateView的android studio中的logcat错误

问题描述

运行此代码时,android studio 的 logcat 中显示错误

public View onCreateView(@NonNull LayoutInflater inflater,  ViewGroup container,
                        @Nullable Bundle savedInstanceState) {

 View v= inflater.inflate(R.layout.fragmentlayout,container,false);
 return v; 

有人可以帮我解决它。错误显示在
View v= inflater.inflate(R.layout.fragmentlayout,container,false);

标签: android

解决方案


推荐阅读