Krishnan V S
Krishnan V S

Reputation: 1166

Android API 23 : cannot resolve FragmentActivity

I upgraded appcompat to rev 40 just now. After that, my project is throwing a compile error - it is not able to resolve FragmentActivity.

Build Target : API 23 Min : 16

Please let me know what I might be doing wrong. Appreciate your help.

Upvotes: 1

Views: 199

Answers (2)

Umar Ata
Umar Ata

Reputation: 4258

You should use AppCompatActivity because it is derived class of FragmentActivity

see the description below

java.lang.Object
   ↳    android.content.Context
       ↳    android.content.ContextWrapper
           ↳    android.view.ContextThemeWrapper
               ↳    android.app.Activity
                   ↳    android.support.v4.app.FragmentActivity
                       ↳    android.support.v7.app.AppCompatActivity

Upvotes: 2

Krishnan V S
Krishnan V S

Reputation: 1166

Thanks all of you, for taking time to help me out. I took the lead from karchick and added an external reference to android-support-v4.jar that was present in the updated AppCompat project/libs and the error got resolved.

Upvotes: 0

Related Questions