Theme.AppCompat.Light.NoActionBar
赤で表示されていて認識されません。 、Intellijを使用してappcompat-v7をインポートする方法
ダウンロードサポートライブラリが
は、新しいライブラリを追加するためにプロジェクト構造に入ったSDKマネージャを使用してAPPCOMPAT-v7-23.4.0-javadoc.jarとAPPCOMPAT-v7-を選択:これは私がやったものですappcompat-7の23.4.0フォルダにある23.4.0-sources.jarファイル
OKを選択すると、appcompat-v7-23.4.0-sourcesがマイライブラリに追加されました。
次に、モジュール - >依存関係に行き、appcompat-v7-23.4.0-sourcesが選択され、OKを押したことを確認しました。
これは機能しませんでしたか?その行はまだ認識されず、ライブラリはlibsフォルダにも表示されません。私は.jarファイルをコピーしてlibsフォルダに貼り付け、右クリックしてそこからライブラリに追加するという別の方法を試みましたが、同じことが起こります。これをどのように機能させることができますか?私の分はマニフェストで7、ターゲット21、最大23に設定されています。 styles.xmlのエラーは、 "シンボルを解決できません"です。
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="AppTheme" parent="AppTheme.Base"></style>
<!-- Base theme applied no matter what API -->
<style name="AppTheme.Base" parent="Theme.AppCompat.Light.NoActionBar">
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
</style>
</resources>
私は自分のプロジェクトを再構築しようとしていると私はときに私は、次のエラーを取得:私は.jarファイルを見つけた
Information:5/26/16, 12:29 PM - Compilation completed with 4 errors and 0 warnings in 4s 99ms
/Users/accudeveloper/Android-App-2.0/android2.0/res/values/styles.xml
Error:(5, -1) android-apt-compiler: [android2.0] /Users/accudeveloper/Android-App-2.0/android2.0/res/values/styles.xml:5: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.NoActionBar'.
Error:(8, -1) android-apt-compiler: [android2.0] /Users/accudeveloper/Android-App-2.0/android2.0/res/values/styles.xml:8: error: Error: No resource found that matches the given name: attr 'colorAccent'.
Error:(6, -1) android-apt-compiler: [android2.0] /Users/accudeveloper/Android-App-2.0/android2.0/res/values/styles.xml:6: error: Error: No resource found that matches the given name: attr 'colorPrimary'.
Error:(7, -1) android-apt-compiler: [android2.0] /Users/accudeveloper/Android-App-2.0/android2.0/res/values/styles.xml:7: error: Error: No resource found that matches the given name: attr 'colorPrimaryDark'.
これがあります。このパスは正しいと思われますか?
アンドロイド-SDK /エクストラ/アンドロイド/ m2repository/COM /アンドロイド/サポート/ APPCOMPAT-V7
このサイトに関連した質問に対して回答に基づいてAPPCOMPAT/resをがあるはず/だけでなくディレクトリ値しかし私はそれを見ていない。
GOOGLEのサポートを受けているステロイドで、無料のAndroidスタジオを使用しない理由は何ですか? –
私は使用されたIntelliJに従ったチュートリアルがいくつかありました。しかし、このすべてが私にすでに頭痛を与えています。私はAndroid Studioに試してみることになってしまうかもしれません。 – terratunaz
再び、Android Studioは同じコア、同じショートカット、同じインターフェースを使用します。 IDEAをアンインストールする必要はありません。Android Studiosのインスタンスをほとんどインストールすることはできません。 –