【发布时间】:2016-07-08 17:20:20
【问题描述】:
Fragment fragment= new BlankFragment();
错误:
InCompatiable type
required : android.app.Fragment
Found : com.example.swapnil.Drawer.BlankFragment
但是我进口了
android.app.Fragment
【问题讨论】:
-
哇,请更好地格式化您的问题,并提供代码。如果您使用
android.app.Fragment,则必须使用android.app.FragmentTransaction和getFragmentManager -
我正在使用相同的库