2017-02-07 3 views
0

私はubuntuのアンドロイドスタジオにアプリを作成しました。今私はプロジェクトをWindows 10に移しました。私は今スタジオを更新しました。 styles.xmlリソースは、親属性(すべて)で指定されたテーマを識別できません。Styles.xmlはアンドロイドスタジオで動作しません

これは解決できないすべての親の属性は、そのシンボルを示している

<!-- Base application theme. --> 
<style name="AppTheme" parent="Theme.AppCompat.DayNight.NoActionBar"> 
    <!-- Customize your theme here. --> 
    <item name="colorPrimary">#f44336</item> 
    <item name="colorPrimaryDark">#e53935</item> 
    <item name="colorAccent">#f44336</item> 
    <item name="showcaseViewStyle">@style/CustomShowcaseTheme</item> 
</style> 

<style name="AppTheme.NoActionBar"> 

    <item name="windowActionBar">false</item> 
    <item name="windowNoTitle">true</item> 
</style> 

<style name="AppTheme.AppBarOverlay" parent="ThemeOverlay.AppCompat.Dark.ActionBar"> 

</style> 

<style name="AppTheme.PopupOverlay" parent="ThemeOverlay.AppCompat.Light"> 

</style> 

<style name="checkbox" parent="Theme.AppCompat.Light"> 
    <item name="colorControlNormal">@color/black</item> 
    <item name="colorControlActivated">@color/black</item> 
</style> 



<style name="layoutmargin"> 
    <item name="android:layout_marginTop">20dp</item> 
    <item name="android:background">@color/white</item> 
    <item name="android:layout_marginLeft">20dp</item> 
    <item name="android:layout_marginRight">20dp</item> 
</style> 


<style name="CustomShowcaseTheme" parent="ShowcaseView.Light"> 
    <item name="sv_backgroundColor">#90234A56</item> 
    <item name="sv_buttonBackgroundColor">#CF3119</item> 
    <item name="sv_buttonText">Close</item> 
    <item name="sv_titleTextAppearance">@style/CustomTitle</item> 
    <item name="sv_detailTextAppearance">@style/CustomDetailText</item> 
</style> 
<style name="CustomTitle" parent="TextAppearance.ShowcaseView.Title"> 
    <item name="android:textColor">#FFFFFF</item> 
    <item name="android:textSize">30dp</item> 
    <item name="android:textStyle">bold</item> 
</style> 

<style name="CustomDetailText" parent="TextAppearance.ShowcaseView.Detail"> 
    <item name="android:textColor">#FFFFFF</item> 
    <item name="android:textSize">20dp</item> 
    <item name="android:textStyle">italic</item> 
</style> 

私のstyles.xmlファイルです。

+0

「ビルドキャッシュ」と呼ばれる機能が原因です。私の答えはこちらをご覧ください:https://stackoverflow.com/a/42765120/1148784 – babay

答えて

0

Android SDKのバージョンはあなたのUbuntuシステムのバージョンと同じですか? Androidスタジオ自体やSDKに問題があるかどうかはわかりません。プロジェクトを再構築しようとしましたか?内部IDE解析エラーは常に信頼できるとは限りません

+0

Sdkのバージョンは異なります。今、私はそれを働かせるために何をすべきですか? – secretcoder

+0

SDKマネージャを使用してインストールします。 –

+0

申し訳ありませんが、私はあなたを取得していませんでした。私は古いSDKのバージョンなどをインストールしたいですか? – secretcoder

関連する問題