The method add(int, Fragment) in the type FragmentTransaction is not applicable for the arguments (int, LayoutAnimaate.PlaceholderFragment)
解决:导包问题
it helped me, my Fragment was imported be android.app.fragment, I changed the import to android.support.v4.app, and the add error of my FragmentActivity Disapeared
|
import android.support.v4.app.Fragment;-----》import android.app.Fragment;