修改res/values/styles.xml文件中name=“AppTheme”的style,在Theme.AppCompat.Light.DarkActionBar前面添加Base.如下所示:
<!-- Base application theme. --> <style name="AppTheme" parent="Base.Theme.AppCompat.Light.DarkActionBar"> <!-- Customize your theme here. --> </style>
Build->Rebuild Project即可。
设置自动导包
原文:https://www.cnblogs.com/kongtongshu/p/11818842.html