The method add(int, Fragment) in the type FragmentTransaction is not applicable for the arguments (i
2016-02-25 17:23
489 查看
The method add(int, Fragment) in the type FragmentTransaction is not applicable for the arguments (int, LayoutAnimaate.PlaceholderFragment)
解决:导包问题
import android.support.v4.app.Fragment;-----》import android.app.Fragment;
解决:导包问题
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 |
相关文章推荐
- iOS 万能跳转界面方法 (runtime实用篇一)
- Android 通过JNI实现守护进程,使Service服务不被杀死
- Web App自适应布局
- android中知道图片name时获取图片的简单方法
- 实例讲解Android app开发中ListView的基本使用及优化
- IOS开发-使用Storyboard进行界面跳转及传值
- Android如何判断一个应用在运行
- Android 4.x耳机插拔检测实现方法
- Android ImageView
- iOS 应用状态恢复
- Android开发之SharedPreferences的使用
- 【Android基础学习】ListView 显示(数据变化后滚动到)最底部。
- The Android Gradle Plugin and Gradle version-compatibility
- dapper 操作类封装
- Android 简单demo kill外部应用进程、卸载外部应用、安装apk
- Android项目:手机安全卫士(2)—— 版本升级
- Android应用开发中Fragment间通信的实现教程
- android4.x 耳机插拔检测机制
- ios layout机制相关方法
- Android 开发设计前十个技巧