4
我试图扩展ListFragment,但我不断收到上述错误。我将android支持库添加到了我的项目中。无法扩展ListFragment - “调用需要API级别11”
我试图扩展ListFragment,但我不断收到上述错误。我将android支持库添加到了我的项目中。无法扩展ListFragment - “调用需要API级别11”
你可能对你的项目/类错误的进口。 您可能从API 11(android.app.ListFragment) 扩展ListFragment,您应该从兼容性类扩展ListFragment(android.support.v4.app.ListFragment
)
尝试增加
import android.support.v4.app.Fragment;
import android.support.v4.app.ListFragment;