Android studio cannot resolve ActionBarActivity -


i have tried invalidating caches , restarting still shows , not compile , run used before. tried renaming class file if remember correctly , must have changed name on made how up. gives me same error findviewbyid, .oncreate, , setcontentview. migh have renamed or tried rename 1 of packages because examplecom , wouldnt allow me upload it.

package com.threedeestone.mike.threedeestone;  import android.support.v7.app.actionbaractivity; import android.os.bundle; import android.widget.edittext; import android.view.view; import android.widget.button; import android.widget.textview;  import java.text.decimalformat;   public class mainactivity extends actionbaractivity { 

to use actionbaractivity or appcompatactivity have add appcompat library dependencies.

add in build.gradle file last version:

dependencies {     ...     compile "com.android.support:appcompat-v7:23.0.0" } 

the version 23.0.0 requires compile project api 23.
otherwise can use 22.2.1.

also pay attention.
actionbaractivity deprecated. check official javadoc.
should use appcompatactivity.


Comments

Popular posts from this blog

html - Firefox flex bug applied to buttons? -

html - Missing border-right in select on Firefox -

c# - two queries in same method -