Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MvvmCross Strange Error: Attribute "MvxBind" has already been defined

Hey i'm a MvvmCross beginner and i try to reproduce this in my own Example-App but i got some strange build errors:

  • Error 3 Attribute "MvxBind" has already been defined
  • Error 4 Attribute "MvxLang" has already been defined
  • Error 5 Attribute "MvxTemplate" has already been defined
  • Error 6 Attribute "MvxItemTemplate" has already been defined
  • Error 7 Attribute "MvxDropDownItemTemplate" has already been defined
  • Error 8 Attribute "MvxSource" has already been defined

There is no other deifinition of these Attribute's...

This my "MvxBindingAttributes.xml":

<?xml version="1.0" encoding="utf-8"?>
<resources>
  <declare-styleable name="MvxBinding">
    <attr name="MvxBind" format="string"/>
    <attr name="MvxLang" format="string"/>
  </declare-styleable>
  <declare-styleable name="MvxControl">
    <attr name="MvxTemplate" format="string"/>
  </declare-styleable>
  <declare-styleable name="MvxListView">
    <attr name="MvxItemTemplate" format="string"/>
    <attr name="MvxDropDownItemTemplate" format="string"/>
  </declare-styleable>
  <item type="id" name="MvxBindingTagUnique"/>
  <declare-styleable name="MvxImageView">
    <attr name="MvxSource" format="string"/>
  </declare-styleable>
</resources>

Would be cool if someone could help me :)

Or any other way/tutorial with android tabs and MvvmCross.

like image 467
jpq Avatar asked Jul 31 '15 10:07

jpq


2 Answers

The newer 3.5.2 and 4.0.0 packages now include MvxAttributes.xml internally. So just remove it from your own Resource\values folder.

like image 97
Cheesebaron Avatar answered Nov 17 '22 10:11

Cheesebaron


You need to change the local namespace to:

xmlns:local="http://schemas.android.com/apk/res-auto"

like image 41
Paul Hickman Avatar answered Nov 17 '22 08:11

Paul Hickman