Skip to content Skip to sidebar Skip to footer

'Call Requires API Level 23' Error, But GetForeground() Exists On FrameLayout From API 1

Summary Finally, I found the related issue, setForeground() incorrectly flagged as requiring API 23 on ViewGroups extending FrameLayout. Issue 189041: setForeground() incorrectly

Solution 1:

Finally I found the related issue, setForeground() incorrectly flagged as requiring API 23 for ViewGroups extending FrameLayout.

Issue 189041: setForeground() incorrectly flagged as requiring API 23 (NewApi) for ViewGroups extending FrameLayout

If you are not extending FrameLayout, the documentation is wrong and API 23 is really required.

Issue 186273: View.setForeground wrong API level


Post a Comment for "'Call Requires API Level 23' Error, But GetForeground() Exists On FrameLayout From API 1"