> Try this code
1- Go to your res folder and inside res folder.
2-Go to values.
3-Go to style.xml
4-change <!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
to <style name="AppTheme" parent="Base.Theme.AppCompat.Light.DarkActionBar">