If you encounter one of these errors, inserted below, you may need to view your settings in styles.xml files. I ran into this problem after I changed my build tools in the build.gradle file from buildToolsVersion '23 .0.0 ' to buildToolsVersion '26 .0.2'
To specifically solve the problem, if you have a line like this <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> change it to include the Base prefix, for example, in my case, I changed from <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> on <style name="AppTheme" parent="Base.Theme.AppCompat.Light.DarkActionBar"> , and everything worked fine.
The following classes cannot be created:
- android.support.v7.widget.AppCompatImageView (Open Class, Show Exception, Clear Cache)
- android.support.v7.widget.AppCompatButton (Open Class, Show Exception, Clear Cache)
- android.support.v7.widget.Toolbar (Open Class, Show Exception, Clear Cache)
- android.support.v7.widget.AppCompatEditText (Open Class, Show Exception, Clear Cache)
- android.support.v7.widget.AppCompatTextView (Open Class, Show Exception, Clear Cache)
- android.support.v7.widget.ActionBarContextView (Open Class, Show Exception, Clear Cache)
- android.support.v7.app.WindowDecorActionBar (Open Class, Show Exception, Clear Cache)
- android.support.v7.widget.ActionBarOverlayLayout (Open Class, Show Exception, Clear Cache)