0

I'm working on a VS2017 Enterprise Xamarin Android project and I'm using AXML designer to design my activities. I get a lot of messages as you see below, many standard attributes are not declared.

image

I tried:

I'm using Windows 10 Enterprise by the way.

Bamdad
  • 726
  • 1
  • 11
  • 28

1 Answers1

1
  1. Create any folder in your pc, copy android-layout-xml.xsd and schemas.android.com.apk.res.android.xsd to this folder.

  2. Open your project->open xml menu->schemas->remove the two items in below image:

enter image description here

  1. Reference the two downloaded files to your schema.

Notes: it will temporarily fix the designer error. but it will disable some of the auto-filling intellisense functionality (ex: auto-fill of @+id/). And reopen your axml with designer will also lead to auto-reference of the old xsd files.

So considering the above truths. I would suggest you use Android studio to finish the layout codes, then copy it to Visual Studio or use Xamarin Studio if you have a Mac. These errors won't have any impact on building/compilation of your project.

Elvis Xia - MSFT
  • 10,801
  • 1
  • 13
  • 24