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

Compile error when compiling charts aar

3 Answers 159 Views
General Discussion
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Mike
Top achievements
Rank 1
Mike asked on 30 Jun 2014, 04:52 PM
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').







3 Answers, 1 is accepted

Sort by
0
Mike
Top achievements
Rank 1
answered on 30 Jun 2014, 05:32 PM
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').
0
Mike
Top achievements
Rank 1
answered on 30 Jun 2014, 05:40 PM
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
0
Accepted
Kiril Stanoev
Telerik team
answered on 30 Jun 2014, 07:00 PM
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.

 
Tags
General Discussion
Asked by
Mike
Top achievements
Rank 1
Answers by
Mike
Top achievements
Rank 1
Kiril Stanoev
Telerik team
Share this question
or