Unable to instantiate Fragment

后端 未结 12 2131
无人及你
无人及你 2020-12-24 06:42

Unable to instantiate fragment make sure class name exists, is public, and has an empty constructor that is public

Is it because my Fr

12条回答
  •  爱一瞬间的悲伤
    2020-12-24 07:14

    i have meet this problem you need use full class name : eg: Fragment.instantiate(MainActivity.this, com.XX.yourFragmentName);

    must full class name

提交回复
热议问题