Attribute "showTitle" Has Already Been Defined

16 posts, 0 answers
  1. Kyle
    Kyle avatar
    19 posts
    Member since:
    Jan 2011

    Posted 31 Mar Link to this post

    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>
  2. Toine
    Toine avatar
    2 posts
    Member since:
    Nov 2012

    Posted 04 Apr in reply to Kyle Link to this post

    Same problem here. We need a fix!
  3. Kyle
    Kyle avatar
    19 posts
    Member since:
    Jan 2011

    Posted 04 Apr Link to this post

    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.
  4. Pavel R. Pavlov
    Admin
    Pavel R. Pavlov avatar
    1225 posts

    Posted 05 Apr Link to this post

    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
  5. Toine
    Toine avatar
    2 posts
    Member since:
    Nov 2012

    Posted 05 Apr in reply to Pavel R. Pavlov Link to this post

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

  6. Pavel R. Pavlov
    Admin
    Pavel R. Pavlov avatar
    1225 posts

    Posted 07 Apr Link to this post

    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
  7. James
    James avatar
    4 posts
    Member since:
    Mar 2017

    Posted 08 May Link to this post

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

     

  8. James
    James avatar
    4 posts
    Member since:
    Mar 2017

    Posted 08 May in reply to James Link to this post

    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?

  9. James
    James avatar
    4 posts
    Member since:
    Mar 2017

    Posted 08 May in reply to James Link to this post

    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.

  10. Vamshi
    Vamshi avatar
    8 posts
    Member since:
    Jun 2017

    Posted 01 Jun Link to this post

    When I add Firebase Dll's then I got this same error...before I didn't get any errors
  11. Vamshi
    Vamshi avatar
    8 posts
    Member since:
    Jun 2017

    Posted 01 Jun Link to this post

    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?
     
  12. Laura
    Laura avatar
    4 posts
    Member since:
    Sep 2016

    Posted 05 Jun Link to this post

    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?


  13. Tsvyatko
    Admin
    Tsvyatko avatar
    855 posts

    Posted 06 Jun Link to this post

    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
  14. Tsvyatko
    Admin
    Tsvyatko avatar
    855 posts

    Posted 10 Jun Link to this post

    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
  15. Vamshi
    Vamshi avatar
    8 posts
    Member since:
    Jun 2017

    Posted 04 Jul in reply to Tsvyatko Link to this post

    When You are releasing updated telerik dlls(sdk 25 version)...
  16. Lance | Tech Support Engineer, Sr.
    Admin
    Lance | Tech Support Engineer, Sr. avatar
    347 posts

    Posted 05 Jul Link to this post

    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
Back to Top