Wrong 2nd argument type. Found: 'com.example.heartbeatdiary.Wode', required: 'android.app.Fragment' less...
Inspection info:
replace(int,android.app.Fragment)in FragmentTransaction cannot be applied
to(int,com.example.heartbeatdiary.Wode)
fragmentTransaction寫replace的時候 第二個引數一直報錯是為什么啊
我查了一下 說是創建的activity檔案然后繼承的fragment 然后我是直接創建的fragment檔案
但是我改了還是報錯 麻煩大家看一看
我是個小白 說清楚一點哦 不然我可能看不懂 謝謝你們了
磕頭....
uj5u.com熱心網友回復:
你將你的代碼貼出來看看轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/203916.html
標籤:Android
上一篇:動態添加布局導致跑馬燈卡頓
下一篇:安卓 線性布局或相對布局排版問題
