Cannot get Chart functionality to integrate in Android Studio

10 posts, 0 answers
  1. ray
    ray avatar
    4 posts
    Member since:
    Sep 2016

    Posted 16 Dec 2016 Link to this post

    I keep getting this style error each time i try to compile the project with the chart.aar file

    Error:(2602, 21) No resource found that matches the given name: attr 'fillColor'.
    Error:(2614, 21) No resource found that matches the given name: attr 'fillColor'.
    Error:(2615, 21) No resource found that matches the given name: attr 'strokeColor'.
    Error:(2621, 21) No resource found that matches the given name: attr 'strokeColor'.
    Error:(2625, 21) No resource found that matches the given name: attr 'fillColor'.

    i always keep getting this error regardless of putting in 'Primitive.aar' file in the project as per previous solution I had found.

    I've updated the min sdk to even 21 in gradle and in the manifest to no avail. 

  2. Deyan
    Admin
    Deyan avatar
    2080 posts

    Posted 19 Dec 2016 Link to this post

    Hello Ray,

    Thanks for writing.

    We cannot reproduce the behavior that you describe. Can you ZIP your project and send it to us for further investigation? You will need to open a new support ticket to be able to attach the archive.

    Thanks for your time!

    Regards,
    Deyan
    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
  3. ray
    ray avatar
    4 posts
    Member since:
    Sep 2016

    Posted 19 Dec 2016 in reply to Deyan Link to this post

    I can't zip up the project because it contains proprietary information. Is there any other information i can provide that might

    help?

  4. Deyan
    Admin
    Deyan avatar
    2080 posts

    Posted 20 Dec 2016 Link to this post

    Hello Ray,

    Can you try creating a separate project, adding the Telerik binaries and reproducing the issue in it?

    We are actively using our binaries in different projects and do not experience such problems so I guess it might be something specific to your setup.

    Which API Level are you targeting?
    Which Telerik binaries are you referencing?

    Regards,
    Deyan
    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. ray
    ray avatar
    4 posts
    Member since:
    Sep 2016

    Posted 26 Jan Link to this post

    I've added a sample project to test for compilation and it still does not compile

    https://www.dropbox.com/s/0g15tq6gdac8y6m/testsub.rar?dl=0

  6. Deyan
    Admin
    Deyan avatar
    2080 posts

    Posted 30 Jan Link to this post

    Hi,

    The reason for your project not compiling is that you are targeting API Level 25 and there are resources in Telerik UI for Android which are API Level 23 compatible so you will need to lower your configuration settings.

    We plan to upgrade UI for Android to API Level 25 so the suggested solution is temporary.

    Let us know if you have additional questions.

    Regards,
    Deyan
    Telerik by Progress
    Want to go cross-platform with C# for iOS, Android, and UWP. With UI for Xamarin you can creating beautiful apps for these mobile platforms using a single shared C# codebase.
  7. ray
    ray avatar
    4 posts
    Member since:
    Sep 2016

    Posted 30 Jan in reply to Deyan Link to this post

    the Chart feature still does not work even when targetting api 23
  8. Deyan
    Admin
    Deyan avatar
    2080 posts

    Posted 02 Feb Link to this post

    Hi,

    Here's a project I've managed to run on my side. Just drop the .aar files into the libs folder and build.

    Regards,
    Deyan
    Telerik by Progress
    Want to go cross-platform with C# for iOS, Android, and UWP. With UI for Xamarin you can creating beautiful apps for these mobile platforms using a single shared C# codebase.
  9. Paolo
    Paolo avatar
    28 posts
    Member since:
    Nov 2015

    Posted 15 Feb in reply to Deyan Link to this post

    Your application does not work on my side. Any suggestions?
  10. Deyan
    Admin
    Deyan avatar
    2080 posts

    Posted 15 Feb Link to this post

    Hello,

    You seem to not have copied the .aar files to the specified libs folder. Did you check whether you have the .aar files at the right location as referenced in the .gradle project?

    Regards,
    Deyan
    Telerik by Progress
    Want to go cross-platform with C# for iOS, Android, and UWP. With UI for Xamarin you can creating beautiful apps for these mobile platforms using a single shared C# codebase.
Back to Top