Android Studioで初めての「Hello World」のようなアプリケーションを試しています。私は新しいアクティビティを追加しようとしました(最初はNew - > Android Componentを介して、結果を気に入らず、削除してから、New-> Activity-> Selected Fullscreenアクティビティを介して)。今私はこれらのエラーが表示されます:Android Studioで全画面アクティビティを追加した後にエラーを作成する
Gradle: Execution failed for task ':LanguagesMemorizer:processDebugResources'.
> Could not call IncrementalTask.taskAction() on task ':LanguagesMemorizer:processDebugResources'
C:\...\src\main\res\values\attrs.xml
Gradle: Attribute "buttonBarStyle" has already been defined
Gradle: Attribute "buttonBarButtonStyle" has already been defined
私は自分のプロジェクトでbuttonBarStyleを探してみました。
- ビルドフォルダ(私はそれを無視する必要がありますね、私はいけない?)新しい活動(スタイル= "buttonBarStyle?")attrsに\
- 値について
- レイアウトファイル:それはで発見されました自身の.xml(
<declare-styleable ...> <attr name="buttonBarStyle" format="reference" /> ...
) - 値\のstyles.xml(
<style...>... <item name="buttonBarStyle">@style/ButtonBar</item>...
) - 値-V11の\とのstyles.xml(
<style...>...<item name="buttonBarStyle">?android:attr/buttonBarStyle</item>...
)
のすべてそれは自動生成されました。このエラーをどのように修正する必要がありますか?
UPDATE:これらの属性は古いアンドロイドのために必要とされるようなので、それがようだが、私はAPIの間の紛争のいくつかの並べ替えがあると思い
<!-- Declare custom theme attributes that allow changing which styles are
used for button bars depending on the API level.
?android:attr/buttonBarStyle is new as of API 11 so this is
necessary to support previous API levels. -->
を言うattrs.xml内のコメントがあり、11-宣言された属性とこれらの手動属性。どのように修正する必要がありますか?