
Having a compilation error that is only occurring on the Android side.
Error Attribute "showTitle" has already been defined
File in question: \obj\Debug\__library_projects__\Telerik.Xamarin.Android.Input\library_project_imports\res\values\attrs.xml
Unfortunately this could have been caused by numerous different things, it started happening with the recent Xamarin update (4.3.0.795), but I was also forced to update the project target to Android 7.0.
Interestingly enough, if I manually edit the file and remove <attr name="showTitle" format="boolean" /> then the project will build successfully. If I rebuild the project however, the attribute reappears and the build fails.
Below is the content of the Attrs.xml file:
<
resources
><
declare-styleable
name
=
"CalendarCellState"
><
attr
name
=
"state_calendar_cell_today"
format
=
"boolean"
/></
declare-styleable
><
declare-styleable
name
=
"RadCalendarView"
><
attr
name
=
"calendarBackground"
format
=
"color"
/><
attr
name
=
"showTitle"
format
=
"boolean"
/><
attr
name
=
"showDayNames"
format
=
"boolean"
/><
attr
name
=
"showGridLines"
format
=
"boolean"
/><
attr
name
=
"showCellDecorations"
format
=
"boolean"
/><
attr
name
=
"selectionMode"
format
=
"enum"
><
enum
name
=
"Single"
value
=
"0"
/><
enum
name
=
"Range"
value
=
"1"
/><
enum
name
=
"Multiple"
value
=
"2"
/></
attr
><
attr
name
=
"displayMode"
format
=
"enum"
><
enum
name
=
"Month"
value
=
"0"
/><
enum
name
=
"Year"
value
=
"1"
/><
enum
name
=
"Week"
value
=
"2"
/></
attr
><
attr
name
=
"weekNumberDisplayMode"
format
=
"enum"
><
enum
name
=
"None"
value
=
"0"
/><
enum
name
=
"Inline"
value
=
"1"
/><
enum
name
=
"Block"
value
=
"2"
/></
attr
><
attr
name
=
"isYearModeCompact"
format
=
"boolean"
/></
declare-styleable
><
declare-styleable
name
=
"CalendarTheme"
><
attr
name
=
"calendarStyle"
format
=
"reference"
/></
declare-styleable
></
resources
>
15 Answers, 1 is accepted


The most common reason behind all resource related errors on the Android project is difference in either the required and installed XamarinForms version or in the targeted Android API. In most cases the information in this particular article is enough for customers to handle the reported error(s).
Please take a look at it and let us know if any of you needs more assistance.
Regards,
Pavel R. Pavlov
Telerik by Progress

Oké then the question should be:
"When are you planning to support the latest Xamarin Forms version?" We have to use SDK 7.0 for other reasons and Telerik components are not compatible with this SDK, it's been out for a long time now!"
You are right about the version. Currently we do not support the latest Android version. We are working on upgrading, however this is related with upgrading our native android components beforehand.
We will upgrade the supported version once our components go through extensive testing and we are sure they are ready to be released. At the time of writing we cannot bind to any specific timeframe when the upgrade will be released.
Regards,
Pavel R. Pavlov
Telerik by Progress

I've updated my package versions according to the post quoted above - all my Android support packages are V23.3.0, and I'm targeting Android 6.0.
However, I'm getting the errors below.
What is wrong?? This was working fine - I've now got a project which won't build and a customer screaming for an update.
Errors from build log:
Failed to generate resource table for split ''
/Users/jameslavery/Documents/P4/THI/Musterd/src/dev_JGL/Droid/obj/Debug/__library_projects__/Xamarin.Android.Support.v7.MediaRouter/library_project_imports/res/values/values.xml(2): error APT0000: Attribute "mediaRouteAudioTrackDrawable" has already been defined
/Users/jameslavery/Documents/P4/THI/Musterd/src/dev_JGL/Droid/obj/Debug/__library_projects__/Xamarin.Android.Support.v7.MediaRouter/library_project_imports/res/values/values.xml(2): error APT0000: Attribute "mediaRouteButtonStyle" has already been defined
/Users/jameslavery/Documents/P4/THI/Musterd/src/dev_JGL/Droid/obj/Debug/__library_projects__/Xamarin.Android.Support.v7.MediaRouter/library_project_imports/res/values/values.xml(2): error APT0000: Attribute "mediaRouteCloseDrawable" has already been defined
/Users/jameslavery/Documents/P4/THI/Musterd/src/dev_JGL/Droid/obj/Debug/__library_projects__/Xamarin.Android.Support.v7.MediaRouter/library_project_imports/res/values/values.xml(2): error APT0000: Attribute "mediaRouteDefaultIconDrawable" has already been defined
/Users/jameslavery/Documents/P4/THI/Musterd/src/dev_JGL/Droid/obj/Debug/__library_projects__/Xamarin.Android.Support.v7.MediaRouter/library_project_imports/res/values/values.xml(2): error APT0000: Attribute "mediaRoutePauseDrawable" has already been defined
/Users/jameslavery/Documents/P4/THI/Musterd/src/dev_JGL/Droid/obj/Debug/__library_projects__/Xamarin.Android.Support.v7.MediaRouter/library_project_imports/res/values/values.xml(2): error APT0000: Attribute "mediaRoutePlayDrawable" has already been defined
/Users/jameslavery/Documents/P4/THI/Musterd/src/dev_JGL/Droid/obj/Debug/__library_projects__/Xamarin.Android.Support.v7.MediaRouter/library_project_imports/res/values/values.xml(2): error APT0000: Attribute "mediaRouteSpeakerGroupIconDrawable" has already been defined
/Users/jameslavery/Documents/P4/THI/Musterd/src/dev_JGL/Droid/obj/Debug/__library_projects__/Xamarin.Android.Support.v7.MediaRouter/library_project_imports/res/values/values.xml(2): error APT0000: Attribute "mediaRouteSpeakerIconDrawable" has already been defined
/Users/jameslavery/Documents/P4/THI/Musterd/src/dev_JGL/Droid/obj/Debug/__library_projects__/Xamarin.Android.Support.v7.MediaRouter/library_project_imports/res/values/values.xml(2): error APT0000: Attribute "mediaRouteTvIconDrawable" has already been defined
/Users/jameslavery/Documents/P4/THI/Musterd/src/dev_JGL/Droid/obj/Debug/__library_projects__/Xamarin.Android.Support.v7.MediaRouter/library_project_imports/res/values/values.xml(2): error APT0000: Attribute "externalRouteEnabledDrawable" has already been defined
/Users/jameslavery/Documents/P4/THI/Musterd/src/dev_JGL/Droid/obj/Debug/__library_projects__/Xamarin.Android.Support.v7.CardView/library_project_imports/res/values/values.xml(2): error APT0000: Attribute "cardBackgroundColor" has already been defined
/Users/jameslavery/Documents/P4/THI/Musterd/src/dev_JGL/Droid/obj/Debug/__library_projects__/Xamarin.Android.Support.v7.CardView/library_project_imports/res/values/values.xml(2): error APT0000: Attribute "cardCornerRadius" has already been defined
/Users/jameslavery/Documents/P4/THI/Musterd/src/dev_JGL/Droid/obj/Debug/__library_projects__/Xamarin.Android.Support.v7.CardView/library_project_imports/res/values/values.xml(2): error APT0000: Attribute "cardElevation" has already been defined
Packages.config contents (relevant parts):
<package id="Xamarin.Android.Support.Animated.Vector.Drawable" version="23.3.0" targetFramework="monoandroid60" />
<package id="Xamarin.Android.Support.Design" version="23.3.0" targetFramework="monoandroid60" />
<package id="Xamarin.Android.Support.v4" version="23.3.0" targetFramework="monoandroid60" />
<package id="Xamarin.Android.Support.v7.AppCompat" version="23.3.0" targetFramework="monoandroid60" />
<package id="Xamarin.Android.Support.v7.CardView" version="23.3.0" targetFramework="monoandroid60" />
<package id="Xamarin.Android.Support.v7.MediaRouter" version="23.3.0" targetFramework="monoandroid60" />
<package id="Xamarin.Android.Support.v7.Palette" version="23.3.0" targetFramework="monoandroid60" />
<package id="Xamarin.Android.Support.v7.RecyclerView" version="23.3.0" targetFramework="monoandroid60" />
<package id="Xamarin.Android.Support.v8.RenderScript" version="23.3.0" targetFramework="monoandroid60" />
<package id="Xamarin.Android.Support.Vector.Drawable" version="23.3.0" targetFramework="monoandroid60" />
<package id="Xamarin.Forms" version="2.3.4.224" targetFramework="MonoAndroid60" />
<package id="Xamarin.Forms.Pages" version="2.3.4.224" targetFramework="MonoAndroid60" />
<package id="Xamarin.Forms.Theme.Base" version="1.0.0.43-pre1" targetFramework="MonoAndroid60" />
<package id="Xamarin.Forms.Theme.Dark" version="1.0.0.43-pre1" targetFramework="MonoAndroid60" />

I appreciate the errors I'm getting aren't in the Telerik packages/files - but this did only start occurring when I added the Telerik NuGet packages to my project.
The strange thing is that it was working fine earlier today, then suddenly stopped with the above errors.
Any pointers?

I've sorted the problem - as well as making sure my package versions were correct, one of:
- Deleting the Xamarin cache
- Deleting the package binaries and restoring them
Has solved it.


I'm using xamarin forms 2.3.3.193 and support libraries 25.1.0.
Firebase dependency DLLs needs 25.1.0
If I update xamarin forms to 2.3.4.224..the support libraries getting decreasing the version to 23.3.0
Teleric needs support libraries23.3.0 and Firebase needs to support libraries 25.1.0
What should i do?

Hi,
I'have the same problem. I made :
Cleaning the xamarin cache
Resinstall all binary package
Putting android 6.0 like to target
Using 23.3.0 about droid
but it's the same.
I need to compile my project, from Telerik has same suggestion?
The showTitle error occurs when mixing apcompat libraries 23 and 25. Currently, our suite supports android appcompat version 23.3.0.
We are currently working on and updated version running with appcompat 25 that will be released by the end of June.
Regards,
Tsvyatko
Progress Telerik
I would like to follow-up on this issue. We have investigated this issue and it turned out that the error is related to different version of android build tools.
In order to avoid this make sure the latest Android SDK tools and Android SDK build tools are installed.

Also make sure you have the SDK Platform for API 25 installed. After that you will be able to target API 25 using our controls. Please excuse us on the delay for providing solution for this issue.
If you encounter other issues do not hesitate to contact us.
Regards,
Tsvyatko
Progress Telerik

You can use SDK 25.1 with Telerik UI for Xamarin. To give you a sample app to compare with, I've attached a test Xamarin.Forms app that is referencing the following:
- The latest version of Xamarin.Forms (2.3.4.237) using the 25.1.1 support libraries
- The latest version of Telerik UI for Xamarin (2017.2.626.0)
Regards,
Lance | Tech Support Engineer, Sr.
Progress Telerik