11

I received a project from another developer. I setup my machine. VS-2017 with the required components was already configured.

Android SDK-Manager has the corresponding version installed. Project is configured to compile with Android 7.1 (Nougat).

Starting the build I get one error

1>ERROR : error APT0000: In <declare-styleable> AppBarLayout, unable to find attribute android:keyboardNavigationCluster

It is unclear to me, were I need to set this information, or were this information is needed.

I rececked ERROR: In MenuView, unable to find attribute android:preserveIconSpacing and Error:In SherlockSpinner, unable to find attribute android:popupPromptView. Both articles don't help.

I rechecked the SDK-Tools, I deleted the folder C:\Users\<user>\AppData\Local\Xamarin.

As far as I understand the message there is an attribute missing, that needs to be set.

In a project file Resource.designer.cs I found

public const int AppBarLayout_android_keyboardNavigationCluster = 2;

The name seams to match exactly.

Can someone explain me this error?

Can someone explain how I get rid of it and how to fix similar problems in future?

Nongthonbam Tonthoi
  • 12,667
  • 7
  • 37
  • 64
xMRi
  • 14,982
  • 3
  • 26
  • 59

5 Answers5

8

I had this error and after some research I just installed the Android OREO 8.0 SDK in the Android SDK Manager and than I select Android Project > Properties > Application > Use latest Platform (Android 8.0 (Oreo)). And it worked for me.

Ankit Patidar
  • 2,731
  • 1
  • 14
  • 22
canvee
  • 361
  • 4
  • 12
3

I fixed it by setting the Target Android Version to API Level 26.

Abdullah Tahan
  • 1,963
  • 17
  • 28
2

You have to update the target of your project, It seems that the solution was created with a higher target (Oreo API Level 26)

edgarmtze
  • 24,683
  • 80
  • 235
  • 386
0

Thsi is what I did, I don't know what of the steps fixed the problems.

  1. Uninstalled all Android SDKs with the SDK manager
  2. Uninstalled the Xamarin components.

1.+2. Was done by uninstalling the App-Development features from VS-2017

  1. Install Xamarin and current SDKs.

After this I was able to select "Use latest platform (Android 8.0 Oreo)" in the Android project section in the Solution.

This wasn't possible before. I just could select "Android 7.1 (Nougat)" and 8.0 didn't showed up (but was installed). Now the error is gone.

xMRi
  • 14,982
  • 3
  • 26
  • 59
0

In my case I'd moved from Enterprise to Professional and found that there was a mismatch in the Xamarin options (Tools -> Options -> Xamarin) and the android SDK location needed to be changed to "C:\Users\YourMum\AppData\Local\Android\android-sdk".

Can't remember exactly what it was originally but think it was in Programs.

Paul Charlton
  • 371
  • 2
  • 10