Rendering Issues: Android Studio 1.2.1.1 and Gradle 1.2.3

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>

    <!-- Base application theme. -->
    <style name="AppTheme" parent="@style/Base.Theme.AppCompat.Light.DarkActionBar">
        <!-- Customize your theme here. -->
        <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">
        <!-- Customize your theme here. -->
        <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>
+4
source share
2 answers

,

<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
        <item name="colorPrimary">@color/my_awesome_color</item>
        <item name="colorPrimaryDark">@color/my_awesome_darker_color</item>
        <item name="colorAccent">@color/accent</item>
    </style>
-1

, Android Studio , 21, minSdk - , 10. -v21/styles, .

<style name="AppTheme" parent="android:Theme.Material">
    <item name="colorPrimary">@color/my_awesome_color</item>
    <item name="colorPrimaryDark">@color/my_awesome_darker_color</item>
    <item name="colorAccent">@color/accent</item>
</style>
-1

All Articles