Ali Massey
Ali Massey

Reputation: 3

Android Studio 2.2.3 Base.Theme.AppCompat Error

Android Studio Version 2.2.3 - Click here to see the Screen Shot of my error.

I am currently working on a school project. My issue is getting past this error when I attempt to add the new theme name to the XML code in the styles.xml file. The project is wanting me to use Base.Theme.AppCompat. When I do so I get errors. Please help! Thank you in advanced!

Upvotes: 0

Views: 204

Answers (2)

user6269712
user6269712

Reputation:

In your activity change

public class ActivityName extends AppCompatActivity to public class ActivityName extends Activity

then you will be able to use any Theme

Upvotes: 0

user5371335
user5371335

Reputation:

Your project seems to have a dependency with 'Appcompat' library. Please add this library to project.

If you use API 25, you may add this library in gradle file as following.

dependencies {
       ...
       compile 'com.android.support:appcompat-v7:25.0.0'
       ...
}

Upvotes: 1

Related Questions