Skip to content Skip to sidebar Skip to footer

Cannot Resolve Method GetContext() In Android.support.v4.app.Fragment (version 21.0.3) Android Studio

I've come accoss a problem that I can't seem seem to understand why it's happening . I've got a few Fragments in my project using the support v4 library (version 21.0.3) . In thes

Solution 1:

Fragment#getContext() was added in version 23 of the support library. If you inadvertently flipped your build.gradle files to use an older version (you say 21.0.3), then getContext() is not supported.


Post a Comment for "Cannot Resolve Method GetContext() In Android.support.v4.app.Fragment (version 21.0.3) Android Studio"