0

The compiler is not able to import the ActionBarActivity :

import android.support.v7.app.ActionBarActivity;

I tried to clean the project but it still shows the error , also i tried "Invalidate Caches/Restart" but didn’t solve the problem , finally i edit the build.grade file and change :

compile 'com.android.support:appcompat-v7:26.0.2'

to :

compile 'com.android.support:appcompat-v7:+'

but still shows the error .

I appreciate any help to solve this error.

OsamaFawzy
  • 65
  • 1
  • 8
  • please read https://stackoverflow.com/questions/21316055/actionbaractivity-cannot-resolve-a-symbol – Umer Farooq May 04 '18 at 02:30
  • 1
    Possible duplicate of [ActionBarActivity cannot resolve a symbol](https://stackoverflow.com/questions/21316055/actionbaractivity-cannot-resolve-a-symbol) – UkFLSUI May 04 '18 at 02:32

1 Answers1

7

ActionBarActivity has been deprecated a long time ago and has probably been removed from the recent versions of the support library. Use AppCompatActivity instead.

Egor
  • 39,695
  • 10
  • 113
  • 130