Reputation: 65
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.
Upvotes: 0
Views: 2321
Reputation: 40228
ActionBarActivity
has been deprecated a long time ago and has probably been removed from the recent versions of the support library. Use AppCompatActivity
instead.
Upvotes: 7