This is a migrated thread and some comments may be shown as answers.

Attribute "showTitle" Has Already Been Defined

15 Answers 209 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
intellitechcorporation
Top achievements
Rank 1
intellitechcorporation asked on 31 Mar 2017, 09:50 PM

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

Sort by
0
Toine
Top achievements
Rank 2
answered on 04 Apr 2017, 08:52 AM
Same problem here. We need a fix!
0
intellitechcorporation
Top achievements
Rank 1
answered on 04 Apr 2017, 06:05 PM
I've tried just about everything including completely reinstalling Xamarin and removing/re-adding all of the Telerik references and this is still occurring.  I'm looking into a script to replace the file after rebuild but I'm not sure that it will be possible with the way Xamarin's build process works.
0
Pavel R. Pavlov
Telerik team
answered on 05 Apr 2017, 07:11 AM
Hello,

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
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Toine
Top achievements
Rank 2
answered on 05 Apr 2017, 07:24 AM

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!"

0
Pavel R. Pavlov
Telerik team
answered on 07 Apr 2017, 03:53 PM
Hi Toine,

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
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
James
Top achievements
Rank 1
answered on 08 May 2017, 10:25 PM

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" />

 

0
James
Top achievements
Rank 1
answered on 08 May 2017, 10:39 PM

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?

0
James
Top achievements
Rank 1
answered on 08 May 2017, 11:33 PM

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.

0
Vamshi
Top achievements
Rank 1
answered on 01 Jun 2017, 11:08 AM
When I add Firebase Dll's then I got this same error...before I didn't get any errors
0
Vamshi
Top achievements
Rank 1
answered on 01 Jun 2017, 11:34 AM
Error:c:\***\***\obj\Debug\_library projects_\teleric.xamarin. Android. Input\library project_imports\res\values\attr.XML(2):error Apt000:Attribute "show title" has already been defined

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?
 
0
Laura
Top achievements
Rank 1
answered on 05 Jun 2017, 05:42 AM

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?


0
Tsvyatko
Telerik team
answered on 06 Jun 2017, 07:55 AM
Hi,

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
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Tsvyatko
Telerik team
answered on 10 Jun 2017, 07:22 AM
Hello,

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
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Vamshi
Top achievements
Rank 1
answered on 05 Jul 2017, 04:42 AM
When You are releasing updated telerik dlls(sdk 25 version)...
0
Lance | Manager Technical Support
Telerik team
answered on 05 Jul 2017, 03:35 PM
Hi Vamshi,

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
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
intellitechcorporation
Top achievements
Rank 1
Answers by
Toine
Top achievements
Rank 2
intellitechcorporation
Top achievements
Rank 1
Pavel R. Pavlov
Telerik team
James
Top achievements
Rank 1
Vamshi
Top achievements
Rank 1
Laura
Top achievements
Rank 1
Tsvyatko
Telerik team
Lance | Manager Technical Support
Telerik team
Share this question
or