Yesterday the project worked fine, but today it suddenly told me "You need to use a Theme.AppCompat theme (or descendant) with this activity.", but all of my activities ALREADY extended AppCompatActivity!
I tried to fix this using the solutions from You need to use a Theme.AppCompat theme (or descendant) with this activity but now after i changed all of my activities to extend Activity, all of the screens(activities) are with black background, like this: screen after fix
What happened? all I did today was to change my build.gradle. I changed from
'compile com.google.android.gms:play-services:9.4.0'
to
compile 'com.google.android.gms:play-services-location:9.4.0'
compile 'com.google.android.gms:play-services-maps:9.4.0'
compile 'com.google.android.gms:play-services-places:9.4.0'
How to fix this? I want all my activities back to normal..
styles.xml:
<resources>
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
</style>
Any help will be appreciated, Thanks