jpq
jpq

Reputation: 61

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:

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.

Upvotes: 6

Views: 1398

Answers (2)

Paul Hickman
Paul Hickman

Reputation: 41

You need to change the local namespace to:

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

Upvotes: 1

Cheesebaron
Cheesebaron

Reputation: 24460

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.

Upvotes: 11

Related Questions