Subby
Subby

Reputation: 5480

Android FragmentActivity Not Recognised

In my Android Application, the FragmentActivity object along with all of the support libraries don't seem to be recognised. I've installed a bunch of stuff from the SDK Manager but it's still not resolving/detecting the objects. What am I missing?

enter image description here

Upvotes: 0

Views: 58

Answers (1)

CommonsWare
CommonsWare

Reputation: 1007296

What am I missing?

Presumably, you are missing the android-support-v4 portion of the Android Support library being attached to your app.

Make sure you have downloaded the Android Support Repository using the SDK Manager. That will be in the Extras section, towards the bottom of the screen.

Then, in the build.gradle file for your application, you need to add a compile directive for com.android.support:support-v4:19.1.0 to your top-level dependencies closure, adding it if it is not already there:

dependencies {
  compile 'com.android.support:support-v4:19.1.0'
}

Upvotes: 1

Related Questions