[Android开发常见问题-16] FragmentActivity cannot be resolve to a type 只需要将android-support-v4.jar放到自己的libs目录下即可。 如果ADT版本比较低,则放到libs之后还需要按照下图导入这个jar包。