SVG Export compatible with Android Studio
Android support vectors which is very nice as you only have to manage one version of the asset, and some other cool things. I am aware that most people use PNG for now, but this is changing and new projects are leaning toward vectors.
Now the issue is that Android Studio is a bit dumb when reading SVG files, and the only tool that export compatible files is Sketch (and I am trying to switch to Adobe XD completely, especially because there is a Windows version incoming).
So I have done many tests to figure out what's "wrong" with XD:
- Android Studio support only inline styles, and can't read styles from the <defs> tag.
- I opened the file with Adobe Illustrator, then exported again, using the Inline style setting, and I got better results, BUT:
I really don't want to post-process my files using AI which is counter productive, and also because AI is still defining the transparent background with a style class, and since Android Studio cannot read it, my background is not not transparent, but white.
I was thinking that we could have a radio button when exporting as SVG, which let you select Inline styles (with an empty <defs> tag) or Internal CSS
If you want to contact me, I'd be happy to run tests and help as much as I can.
I have attached 3 svg files, the only one that run correctly is the Sketch one.
I’m very happy to announce this issue has been fixed in our latest release of XD 14. I encourage you to update to this build.
28 commentsComments are closed
The description of this bug and its comments are not related at all. Looks like somebody from the XD team merged two submissions incorrectly. So what exactly is the bug-fix-in-progress? The Android SVG icon issue - or - the Adobe XD app issue?
What ever things created in xd when converted in svg , icons per say doesn't support in angular or android studio. And this issue is there from a long time. Don't know when you people are going to resolve this issue.
I have the same problem. I have an imac, i use android file.
the adobe xd application prevents me to change my use of the USB port from "loading" to "multimedia transfer".
I finally tried to uninstall the XD application, but despite the uninstallation, a "ghost" window of the adobe XD application still appears and interferes with the transfer ... (while it is unmounted).
Help ! Will I be able to retrieve my phone and transfer my items back to my mac?
Xd wasted my time commented
Still not fixed... I guess I need to stop using Adobe products
Kasim Sheyi commented
Simple thing to do is to close Adobe XD on your PC, make sure it is not running. Thats the fix for me
Please Adobe, check and fix this problem!
This issue is still there, I've found a little bit better workaround, export SVG from XD, then open it in Sketch and then export it from sketch - voila, then it can be imported by android studio
When will this be fixed? I'd like to use XD, and now I need to recommend that we not purchase the product.
not fixed!!! 2018-5-27
Since the time I installed XD on my desktop, I have been unable to use my Android phone to just transfer files normally. I get a message popup asking, ""Open Adobe XD when this USB device accessory is connected?" If I choose CANCEL, then the phone goes back to the charging-only mode.
Josiah Schaefer commented
For me it worked once I closed out of Adobe XD and stopped the program rather than uninstalling it. Hope that helps someone else.
Still not fixed :(
Takeryu Faceter commented
The common data transfer app is like that , if you use the third-party software to do, It is necessary to connect the computer with USB , there are some free app for you to transfer transfer data transfer , Facebook and Gmail ,
Still not fixed ... Wow.
Ok, as per this thread: https://adobexd.uservoice.com/forums/353010/suggestions/17361541
I uninstalled XD on my Mac and now AFT works again.
Adobe XD 1.2.6
I installed XD to try out tethered preview, but uninstalled it after a few hours. After uninstall, I get the message "no apps work with this USB-accessory" (translated from Swedish) when I connect with USB. Same OS, same cable, same Droid version, only XD install/uninstall has changed. The error message also gives a link to the Play Store page for XD, which is why I'm guessing it's the culprit.
I've restarted the phone and emptied app cache, and regardless of which USB mode (including dev mode) I've selected, I get the same error.
Cheers / M
This is expected. Android File transfer will never work along with Adobe Mobile XD.
One need to uninstall Android File Transfer in order to run Adobe XD.
I am also facing same issue