我正在尝试扩展 ListFragment,但我不断收到上述错误。我在我的项目中添加了 android 支持库。

最佳答案

您的项目/类(class)可能有错误的导入。
您可能从 API 11 (android.app.ListFragment) 扩展 ListFragment
并且您应该从兼容性类( android.support.v4.app.ListFragment )扩展 ListFragment

关于android - 无法扩展 ListFragment - "Call requires API level 11",我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/11971221/

10-11 00:10