No resource found - Theme.AppCompat.Light.DarkActionBar
If you are using Android Studio then just add the dependency
dependencies {
implementation 'com.android.support:appcompat-v7:25.0.1'
}
to app/build.gradle
. And that will work
If you're using Eclipse, then add the reference library
into your project as the following steps:
- Right-click your project in the
Project Explorer
View. - Click
Properties
. - Click
Android
in theProperties
window. - In the
Library
group, clickAdd...
- See the image below.
- Select the library. Click
OK
. - Click the
OK
button again in the Properties window.
AppCompat
is a library project. You need to reference the library project in your android project.
Check the topic Adding libraries with resources.
Update
Adding material theme should be the way. Check https://material.io/develop/android/docs/getting-started for more details.