I have a problem when I call the "vp_fragments!!.a...
# android
n
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,
r
This isn’t a Kotlin problem, this is a logic issue in your code.. You should try to debug it or look at stackoverflow.
The error tells you exactly whats wrong, your trying to add a fragment that has already been added