I upgraded Android studio to the latest version, which is "1.2.1.1" with gradle 1.2.3. But I have problems with my projects and new projects. all layout files cannot show a preview due to this problem:
Rendering problems
The following classes could not be found: android.support.v7.internal.widget.ActionBarOverlayLayout
I found a solution for it that changed the topic to:
Base.Theme.Appcompat
But now it doesn't display any custom views or even Appcompat views. This gives me this error:
The following classes could not be found: - android.support.v7.widget.Toolbar (Fix Build Path, Create Class)
The following classes could not be found: - CustomView.VoiceView (Fix Build Path, Create Class)
Tip: Try to build the project.
I also tried changing the rendering version to 21 instead of 22. This does not work. Cleaning and recovery do nothing .. Thanks in advance.
Refresh [Add .xml Style]: My style code:
<resources>
<style name="AppTheme" parent="@style/Base.Theme.AppCompat.Light.DarkActionBar">
<item name="colorPrimary">@color/light_blue_500</item>
<item name="colorPrimaryDark">@color/light_blue_700</item>
<item name="colorAccent">@color/light_ornage_500</item>
</style>
<style name="RevealOrange" parent="@style/Base.Theme.AppCompat.Light.DarkActionBar">
<item name="colorPrimary">@color/light_blue_500</item>
<item name="colorPrimaryDark">@color/light_ornage_700</item>
<item name="colorAccent">@color/light_ornage_500</item>
</style>
</resources>
source
share