{"action":"created","issue":{"url":"https://api.github.com/repos/BigBadaboom/androidsvg/issues/73","repository_url":"https://api.github.com/repos/BigBadaboom/androidsvg","labels_url":"https://api.github.com/repos/BigBadaboom/androidsvg/issues/73/labels{/name}","comments_url":"https://api.github.com/repos/BigBadaboom/androidsvg/issues/73/comments","events_url":"https://api.github.com/repos/BigBadaboom/androidsvg/issues/73/events","html_url":"https://github.com/BigBadaboom/androidsvg/issues/73","id":112110167,"number":73,"title":"svg attribute not recognized when using the lib from Maven repository through Gradle","user":{"login":"MisterY","id":462445,"avatar_url":"https://avatars.githubusercontent.com/u/462445?v=3","gravatar_id":"","url":"https://api.github.com/users/MisterY","html_url":"https://github.com/MisterY","followers_url":"https://api.github.com/users/MisterY/followers","following_url":"https://api.github.com/users/MisterY/following{/other_user}","gists_url":"https://api.github.com/users/MisterY/gists{/gist_id}","starred_url":"https://api.github.com/users/MisterY/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MisterY/subscriptions","organizations_url":"https://api.github.com/users/MisterY/orgs","repos_url":"https://api.github.com/users/MisterY/repos","events_url":"https://api.github.com/users/MisterY/events{/privacy}","received_events_url":"https://api.github.com/users/MisterY/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/BigBadaboom/androidsvg/labels/help%20wanted","name":"help wanted","color":"159818"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-10-19T09:45:20Z","updated_at":"2016-04-11T13:17:08Z","closed_at":"2016-02-04T15:03:45Z","body":"I've replaced the local copy of the sources (from google code) with the link to \"compile 'com.caverock:androidsvg:1.2.1'\" (or 1.2.2-beta1) and during build I'm getting the following error:\r\n\r\n>Error:(54) No resource identifier found for attribute 'svg' in package 'com.money.manager.ex'\r\n\r\nThe namespace is set to\r\n\r\n    xmlns:svgimageview=\"http://schemas.android.com/apk/res-auto\"\r\n\r\nin the root LinearLayout, and the image view looks like this\r\n\r\n        <com.caverock.androidsvg.SVGImageView\r\n            android:id=\"@+id/imageView\"\r\n            android:layout_width=\"match_parent\"\r\n            android:layout_height=\"match_parent\"\r\n            android:layout_gravity=\"center_horizontal\"\r\n            android:layout_margin=\"40dp\"\r\n            android:scaleType=\"fitCenter\"\r\n            svgimageview:svg=\"tutorial_images/accounts.svg\"/>\r\n\r\nNaturally, this all works when the project is compiled from source together with the main app but when I want to use the reference to a binary from Maven repository, the build errors appear. I've tried a few simple things but none of them worked. Like, removing the namespace will compile correctly but crash during runtime, etc.\r\nThe main issue is that the simple replacement does not work out of the box. I will look into this a bit more when I find some time.\r\n\r\nMore info:\r\nusing Android Studio with Gradle"},"comment":{"url":"https://api.github.com/repos/BigBadaboom/androidsvg/issues/comments/208336019","html_url":"https://github.com/BigBadaboom/androidsvg/issues/73#issuecomment-208336019","issue_url":"https://api.github.com/repos/BigBadaboom/androidsvg/issues/73","id":208336019,"user":{"login":"BigBadaboom","id":840288,"avatar_url":"https://avatars.githubusercontent.com/u/840288?v=3","gravatar_id":"","url":"https://api.github.com/users/BigBadaboom","html_url":"https://github.com/BigBadaboom","followers_url":"https://api.github.com/users/BigBadaboom/followers","following_url":"https://api.github.com/users/BigBadaboom/following{/other_user}","gists_url":"https://api.github.com/users/BigBadaboom/gists{/gist_id}","starred_url":"https://api.github.com/users/BigBadaboom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BigBadaboom/subscriptions","organizations_url":"https://api.github.com/users/BigBadaboom/orgs","repos_url":"https://api.github.com/users/BigBadaboom/repos","events_url":"https://api.github.com/users/BigBadaboom/events{/privacy}","received_events_url":"https://api.github.com/users/BigBadaboom/received_events","type":"User","site_admin":false},"created_at":"2016-04-11T13:17:08Z","updated_at":"2016-04-11T13:17:08Z","body":"And you have tried the \"copy attrs.xml\" suggestion?\n\n\n\nOn 11 April 2016 at 23:51, Alen Siljak <notifications@github.com> wrote:\n\n> Hi, sorry for mentioning Xamarin, it has nothing to do with this issue.\n> This is happening in the same Android app when I remove the source code of\n> AndroidSVG, and\n>\n>    - add either .jar file or a Gradle reference, and\n>    - copy the content of the attrs.XML file\n>\n> Xamarin is just an end goal of the exercise. But to get there, first I\n> need to get all the libraries packaged or their source converted to C#.\n>\n> —\n> You are receiving this because you modified the open/close state.\n> Reply to this email directly or view it on GitHub\n> <https://github.com/BigBadaboom/androidsvg/issues/73#issuecomment-208306657>\n>\n"}}