I have a problem when I call the "vp_fragments!!.adapter = tradeFragAdapter" It occur "java.lang.IllegalStateException: Fragment already added: HomeCNYFrag{38e11c #1 id=0x7f09037f androidswitcher2131297151:0}"
but its good in java code .Anyone have a idea to solve this problem,