Ich habe den ganzen Tag lang meinen Kopf auf diesen Kopf geschlagen, aber es scheint, ich kann es einfach nicht herausfinden ..."Attribut" title "wurde bereits definiert" nach dem Hinzufügen nach dem Hinzufügen von android-support-v7-appcompat
OK, also füge ich ein Projekt hinzu, das alles in Ordnung war und funktionierte.
Um „rejuvinate“ entschieden, ich Aktionsleiste mit der appcompat Bibliothek hinzufügen (wie here
Da ich die Bibliothek hinzugefügt haben, ich kann das Projekt nicht mehr kompilieren und ich halte den folgenden Fehler.:
C:\Users\Me\Documents\Dev\MyProject\res\values\widget_attributes.xml:9: error: Attribute "title" has already been defined
die widget_attrributes.xml sieht wie folgt aus:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<attr name="display" format="string" />
<attr name="lineWidth" format="dimension" />
<attr name="lineColor" format="color|reference" />
<attr name="fillColor" format="color|reference" />
<declare-styleable name="DigitalDisplay">
<attr name="title" format="string" />
<attr name="unit" format="string" />
<attr name="display" />
<attr name="valueFormat" format="string" />
<attr name="showUnitInValue" format="boolean" />
<attr name="showUnitInTitle" format="boolean" />
<attr name="valueIsTime" format="boolean" />
<attr name="titleTxtAppearance" format = "reference" />
<attr name="valueTxtAppearance" format = "reference" />
<attr name="unitTxtAppearance" format = "reference" />
</declare-styleable>
.../...
</resources>
und ich verwende die Bezeichnung unten, wenn meine ow mit n-Widgets:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:droidfa="http://schemas.android.com/apk/res/com.droidfa"
android:layout_width="match_parent"
android:layout_height="match_parent" >
Ich muss etwas falsch sein, aber ich kann nicht herausfinden, was ...
Jede Hilfe oder Hinweis wird sehr geschätzt.
Vielen Dank im Voraus, JM
Genau das gleiche Problem . Danke @ jmc34 – bob
Ja, es ist eine riesige Nuss saugt, weil alle Attribute in einem zusammengerollt sind. Google sollte dieses Problem im Voraus in Betracht gezogen haben –