The problem is, when we want to drag a component to the layout design window, the component is not shown. But we could see the attributes of it on the right.

Now find app\res\values\styles.xml and modify it.

Change this line



<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">


to



<style name="AppTheme" parent="Base.Theme.AppCompat.Light.DarkActionBar">