mardi 26 mai 2015

Rendering Problems: Android Studio 1.2.1.1 and Gradle 1.2.3

I updated android studio to latest version which is "1.2.1.1" with gradle 1.2.3..But I have problem with My projects and new projects.. all Layouts files can't show preview because of this problem:

Rendering problems

The following classes could not be found: android.support.v7.internal.widget.ActionBarOverlayLayout

I found solution for it which change the theme to:

Base.Theme.Appcompat

But now It doesn't show any Custom view or even Appcompat views. It 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 tried also to change rendering version to 21 instead of 22.. It doesn't work..Clean and rebuild don't do anything.. Thanks in advance.

Update [Add style.xml]: My style code is :

<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>

Aucun commentaire:

Enregistrer un commentaire