Compile error when compiling charts aar

4 posts, 1 answers
  1. Mike
    Mike avatar
    17 posts
    Member since:
    Jun 2012

    Posted 30 Jun 2014 Link to this post

    In my project I'm using several external libraries including the viewpager indicator library (imported as an aar as well).

    Once I add the charts aar as a dependency (Chart-2014.2.0618-trialRelease), I'm seeing a compile error.  It seems both the viewpager indicator and the charts libraries share some common style names.  Is it possible to have these variables named in a unique way? (I realize that either party here could do the renaming, but it would be better if both named their own variables uniquely)

    The viewpager indicator aar is from 'http://dl.bintray.com/populov/maven', 'com.viewpagerindicator:library:2.4.1@aar'

    Compile error:

    ...\android\build\intermediates\exploded-aar\Chart-2014.2.0618-trialRelease\res\layout\default_tooltip_ohlc_content.xml
    Error:(11, 21) No resource found that matches the given name (at 'id' with value '@id/chart_tooltip_category').
    Error:Execution failed for task ':app:processDebugResources'.
    > com.android.ide.common.internal.LoggedErrorException: Failed to run command:
    C:\dev\android-studio\sdk\build-tools\19.1.0\aapt.exe package -f --no-crunch -I C:\dev\android-studio\sdk\platforms\android-19\android.jar -M C:\...\android\app\build\intermediates\manifests\debug\AndroidManifest.xml -S
    (...)
    Error Code:
    1
    Output:
    ...\android\app\build\intermediates\res\debug\values\values.xml:216: error: Attribute "fillColor" has already been defined
    ...\android\app\build\intermediates\res\debug\values\values.xml:226: error: Attribute "strokeColor" has already been defined
    ...\android\app\build\intermediates\res\debug\layout\default_tooltip_ohlc_content.xml:8: error: Error: No resource found that matches the given name (at 'id' with value '@id/chart_tooltip_category').







  2. Mike
    Mike avatar
    17 posts
    Member since:
    Jun 2012

    Posted 30 Jun 2014 in reply to Mike Link to this post

    I made some changes to the viewpager indicator library to fix the first two Attribute errors (I renamed their variables to something that doesn't conflict).  I'm still seeing this error though - any ideas?

    ...\android\app\build\intermediates\res\debug\layout\default_tooltip_ohlc_content.xml:8: error: Error: No resource found that matches the given name (at 'id' with value '@id/chart_tooltip_category').
  3. DevCraft banner
  4. Mike
    Mike avatar
    17 posts
    Member since:
    Jun 2012

    Posted 30 Jun 2014 Link to this post

    It looks like I needed to import the 'Primitives-2014.2.0618-trialRelease' aar.  Everything builds fine now.

    I think this video needs updating (it only mentions compiling the Chart aar):
    http://www.youtube.com/watch?v=2-v3mUeJx5M
  5. Answer
    Kiril Stanoev
    Admin
    Kiril Stanoev avatar
    1511 posts

    Posted 30 Jun 2014 Link to this post

    Hi Mike,
    Thank you for the feedback and sorry for the inconvenience caused. We're in the process of updating the videos. In the meantime, please refer to the product documentation. Below are some links that you might find useful:

    Getting Started with "UI for Android" in Android Studio

    Getting Started with "UI for Android" in Eclipse

    Don't hesitate to contact us with further feedback. 

    Regards,
    Kiril Stanoev
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top
DevCraft banner