Giter Club home page Giter Club logo

svgtoandroid's Introduction

Hi there 👋

  • 🔭 I’m currently working on IoT and logistics automation
  • 🌱 Learning and using Javascript, C# and Kotlin recently
  • 💻 4 years for software engineer and 3 years for team leader
  • 📫 [email protected]

my github stats languages

svgtoandroid's People

Contributors

elaine666 avatar misakuo avatar rillig avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

svgtoandroid's Issues

Corrupt drawable XML is generated in locale with comma as decimal separator

When I convert the following SVG, the generated XML is corrupt:

Input:

<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48" version="1.1">
    <rect width="48" height="48" x="0" y="0" rx="5" ry="5"
          style="fill:#d48e00;fill-opacity:1;stroke-width:0" />
</svg>

Output:

<?xml version="1.0" encoding="utf-8"?>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
        android:viewportWidth="48"
        android:viewportHeight="48"
        android:width="48dp"
        android:height="48dp">
    <path android:fillColor="#D48E00" android:name="background" android:strokeWidth="0"
          android:fillAlpha="1"
          android:pathData="M5,00,0,00,L43,00,0,00,Q48,00,0,00,48,00,5,00,L48,00,43,00,Q48,00,48,00,43,00,48,00,L5,00,48,00,Q0,00,48,00,0,00,43,00,L0,00,5,00,Q0,00,0,00,5,00,0,00z"/>
</vector>

When generating the path data, the decimal separator must be a point, not a comma.
When a point is used instead of a comma, the converted drawable displays correctly.

Furthermore, it would be nice if the coordinates would stay exactly as they are in the original SVG, having the same number of decimal places, or none at all in the above case.

Generate Error

15:01:24 Plugin Error: SVG2VectorDrawable threw an uncaught NullPointerException. Disable Plugin
15:01:24 NullPointerException: null

Android studio 2.1 preview 4

Improve format of generated resource

Two things that can be improved

  1. OrderOfAttributes - pathData attribute can sometimes take be long so I thing it should be placed at the end of attributes list (now for ex it's difficult to change color without scrolling all the way right)
    orderofattributes

  2. PreformatedCode (each attribute in new line)
    preformatedcode

转换后样式出问题,

这个是Sketch 导出的svg ,转换后,样子不正确。 下面的格式不争气,不可以复制到一个文件里面实验一下。

<?xml version="1.0" encoding="UTF-8" standalone="no"?> <svg width="160px" height="160px" viewBox="0 0 160 160" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <!-- Generator: sketchtool 3.7.2 (28276) - http://www.bohemiancoding.com/sketch --> <title>694D04A6-7A7B-43D3-9F79-461149F5D174</title> <desc>Created with sketchtool.</desc> <defs> <path d="M19.6666667,71.25 C30.022,71.25 38.4166667,62.8553333 38.4166667,52.5 L38.4166667,18.75 C38.4166667,8.39466667 30.022,0 19.6666667,0 C9.31133333,0 0.916666667,8.39466667 0.916666667,18.75 L0.916666667,52.5 C0.916666667,62.8553333 9.31133333,71.25 19.6666667,71.25 L19.6666667,71.25 Z" id="path-1"></path> </defs> <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> <g id="1024-copy" transform="translate(-709.000000, -18.000000)"> <g id="noun_401925_cc-copy-2" transform="translate(709.000000, 18.000000)"> <g id="Group" transform="translate(46.000000, 20.000000)"> <g id="Rectangle-54" transform="translate(15.000000, 0.000000)"> <mask id="mask-2" fill="white"> <use xlink:href="#path-1"></use> </mask> <use id="Mask" fill="#FFFFFF" xlink:href="#path-1"></use> <rect fill="#67E36C" mask="url(#mask-2)" x="2" y="59" width="36" height="15"></rect> </g> <path d="M30.9166667,86.0377333 L30.9166667,112.5 L8.41666667,112.5 L8.41666667,120 L30.9166667,120 L38.4166667,120 L60.9166667,120 L60.9166667,112.5 L38.4166667,112.5 L38.4166667,86.0377333 C55.2906667,84.1714667 68.4166667,69.8713333 68.4166667,52.5 L60.9166667,52.5 C60.9166667,66.9974667 49.1641333,78.75 34.6666667,78.75 C20.1692,78.75 8.41666667,66.9974667 8.41666667,52.5 L0.916666667,52.5 C0.916666667,69.8714667 14.0426667,84.1716 30.9166667,86.0377333 L30.9166667,86.0377333 Z" id="Shape" fill="#FFFFFF"></path> </g> </g> </g> </g> </svg>

Output name of file is incorrect in some cases (filenames with numbers?)

I used your tool to batch process a bunch of SVGs. A few of the SVGs were output with extra underscores in their filenames.

ki-a11y.svg was output as vector_drawable_ki_a__y.svg
ki-a11y-f.svg was output as vector_drawable_ki_a__y_f.svg

So, your tool definitely didn't like using 11 in the filename...

未适配AndroidStudio4.1

插件版本:1.8.2
AndroidStudio版本: 4.1
打开Studio提示Plugin "SVG2VectorDrawable" is incompatible (supported only in IntelliJ IDEA).

转换后透明度丢失

svg图片可以设置一些图层的透明度,转换后不透明的没有问题,有透明度的就变成了黑色😂

NullPointerException: null

AndroidStudio:2.1.3
系统:windows 7 64 旗舰版
SVGToAndroid版本:2.4.3

不管用,不管怎么选选项,都没用,在Event Log报错如题

Android Studio 3.0 warning

Getting Use 0.566 instead of .566 to avoid crashes on some devices warning (error) on below xml

<path android:fillColor="#FFFFFF"
         android:fillType="evenOdd"
         android:pathData="M.566 29.735C-0.003 14.697 13.134.801 28.146.62c7.652-.654 ...

Converting from polygon with points

There is a bug where if converting from a polygon in the form
<polygon points="0 0 0 100 100 100 100 0 0 0" fill="#0000FF"/>
results in an invalid vector path of the form
<path android:fillColor="#0000FF" android:pathData="M0 L0 L0 L100 L100 L100 L100 L0 L0 L0 z" />
where it should be
<path android:fillColor="#0000FF" android:pathData="M0,0 L0,100 L100,100 L100,0 L0,0 z" />

Request: add combobox in dialog: origin density

Since the designer work in some pixel density, the SVG that is generated is in a size that fits it.
This is a problem, because the output VectorDrawable will be in a different size than what it was supposed to be.

Please allow to choose the origin density of the SVG in this dialog:
image

change the icon plz

the plugin icon should be changed, it just look "special“ in my AS toolbar, plz redesign another one

下载地址不见了?

如题,下载地址打开404。

在release 里面找到jar包了, 可能要更新一下readme 的下载地址

android studio 4.1.1 svg转换xml失败

java.lang.AssertionError: Wrong line separators: '...\n</vector>\r\n' at offset 1865 at com.intellij.openapi.util.text.StringUtil.assertValidSeparators(StringUtil.java:2811) at com.intellij.openapi.editor.impl.DocumentImpl.assertValidSeparators(DocumentImpl.java:689) at com.intellij.openapi.editor.impl.DocumentImpl.replaceString(DocumentImpl.java:605) at com.intellij.openapi.editor.impl.DocumentImpl.lambda$setText$2(DocumentImpl.java:1060) at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:212) at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:178) at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:168) at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:154) at com.intellij.openapi.editor.impl.DocumentImpl.setText(DocumentImpl.java:1065) at com.intellij.psi.impl.file.PsiDirectoryImpl.add(PsiDirectoryImpl.java:411) at com.intellij.psi.impl.file.PsiJavaDirectoryImpl.add(PsiJavaDirectoryImpl.java:65) at com.moxun.s2v.Transformer$1$1.run(Transformer.java:235) at com.intellij.openapi.application.RunResult.run(RunResult.java:35) at com.intellij.openapi.command.WriteCommandAction.lambda$null$1(WriteCommandAction.java:248) at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:976) at com.intellij.openapi.command.WriteCommandAction.lambda$performWriteCommandAction$2(WriteCommandAction.java:247) at com.intellij.openapi.command.WriteCommandAction.lambda$doExecuteCommand$4(WriteCommandAction.java:305) at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:220) at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:188) at com.intellij.openapi.command.WriteCommandAction.doExecuteCommand(WriteCommandAction.java:307) at com.intellij.openapi.command.WriteCommandAction.performWriteCommandAction(WriteCommandAction.java:246) at com.intellij.openapi.command.WriteCommandAction.execute(WriteCommandAction.java:227) at com.moxun.s2v.Transformer$1.run(Transformer.java:254) at com.intellij.openapi.application.TransactionGuardImpl$2.run(TransactionGuardImpl.java:201) at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:831) at com.intellij.openapi.application.impl.ApplicationImpl.lambda$invokeLater$4(ApplicationImpl.java:310) at com.intellij.openapi.application.impl.FlushQueue.doRun(FlushQueue.java:80) at com.intellij.openapi.application.impl.FlushQueue.runNextEvent(FlushQueue.java:128) at com.intellij.openapi.application.impl.FlushQueue.flushNow(FlushQueue.java:46) at com.intellij.openapi.application.impl.FlushQueue$FlushNow.run(FlushQueue.java:184) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:764) at java.awt.EventQueue.access$500(EventQueue.java:98) at java.awt.EventQueue$3.run(EventQueue.java:715) at java.awt.EventQueue$3.run(EventQueue.java:709) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74) at java.awt.EventQueue.dispatchEvent(EventQueue.java:734) at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:974) at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:847) at com.intellij.ide.IdeEventQueue.lambda$null$8(IdeEventQueue.java:449) at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:741) at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$9(IdeEventQueue.java:448) at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:831) at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:496) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

Select target dependency configuration (Android studio scope)

Now all assets go to default scope (main dependency configuration), but sometimes we want to add new resource to other configuration e.g change logo/icons when rebranding app.

It would be nice to have combibox containing list of all avialable configurations to select target of generated resource

The generate button has no response after I clicked it

Below is the detail error log:

null
java.lang.NullPointerException
    at com.moxun.s2v.utils.AttrMapper.getTranslateAttrs(AttrMapper.java:53)
    at com.moxun.s2v.Transformer.processSubGroups(Transformer.java:112)
    at com.moxun.s2v.Transformer.parseGroup(Transformer.java:106)
    at com.moxun.s2v.Transformer.processSubGroups(Transformer.java:116)
    at com.moxun.s2v.Transformer.parseGroup(Transformer.java:106)
    at com.moxun.s2v.Transformer.transforming(Transformer.java:71)
    at com.moxun.s2v.GUI$5.actionPerformed(GUI.java:124)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
    at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2346)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
    at java.awt.Component.processMouseEvent(Component.java:6527)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3321)
    at java.awt.Component.processEvent(Component.java:6292)
    at java.awt.Container.processEvent(Container.java:2234)
    at java.awt.Component.dispatchEventImpl(Component.java:4883)
    at java.awt.Container.dispatchEventImpl(Container.java:2292)
    at java.awt.Component.dispatchEvent(Component.java:4705)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4898)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4533)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4462)
    at java.awt.Container.dispatchEventImpl(Container.java:2278)
    at java.awt.Window.dispatchEventImpl(Window.java:2739)
    at java.awt.Component.dispatchEvent(Component.java:4705)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:746)
    at java.awt.EventQueue.access$400(EventQueue.java:97)
    at java.awt.EventQueue$3.run(EventQueue.java:697)
    at java.awt.EventQueue$3.run(EventQueue.java:691)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:86)
    at java.awt.EventQueue$4.run(EventQueue.java:719)
    at java.awt.EventQueue$4.run(EventQueue.java:717)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:716)
    at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:866)
    at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:650)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:381)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

And next is my svg file which was exported by sketch:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg width="299px" height="179px" viewBox="0 0 299 179" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
    <!-- Generator: Sketch 39.1 (31720) - http://www.bohemiancoding.com/sketch -->
    <title>Group</title>
    <desc>Created with Sketch.</desc>
    <defs></defs>
    <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
        <g id="Group">
            <rect id="Rectangle" fill="#F6A623" x="0" y="0" width="299" height="179"></rect>
            <circle id="Oval" fill="#D42828" cx="120" cy="100" r="36"></circle>
        </g>
    </g>
</svg>

java.lang.NumberFormatException: multiple points

multiple points
java.lang.NumberFormatException: multiple points
	at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1914)
	at sun.misc.FloatingDecimal.parseFloat(FloatingDecimal.java:122)
	at java.lang.Float.parseFloat(Float.java:451)
	at java.lang.Float.valueOf(Float.java:416)
	at com.moxun.s2v.utils.TranslateReduceUtil.reduce(TranslateReduceUtil.java:37)
	at com.moxun.s2v.SVGParser.reduceAttrs(SVGParser.java:256)
	at com.moxun.s2v.SVGParser.trim(SVGParser.java:244)
	at com.moxun.s2v.SVGParser.getGroups(SVGParser.java:89)
	at com.moxun.s2v.SVGParser.hasGroupTag(SVGParser.java:194)
	at com.moxun.s2v.Transformer.transforming(Transformer.java:70)
	at com.moxun.s2v.GUI$6.actionPerformed(GUI.java:160)
	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
	at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348)
	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
	at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
	at java.awt.Component.processMouseEvent(Component.java:6541)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
	at java.awt.Component.processEvent(Component.java:6306)
	at java.awt.Container.processEvent(Container.java:2237)
	at java.awt.Component.dispatchEventImpl(Component.java:4897)
	at java.awt.Container.dispatchEventImpl(Container.java:2295)
	at java.awt.Component.dispatchEvent(Component.java:4719)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4889)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4526)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4467)
	at java.awt.Container.dispatchEventImpl(Container.java:2281)
	at java.awt.Window.dispatchEventImpl(Window.java:2746)
	at java.awt.Component.dispatchEvent(Component.java:4719)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:764)
	at java.awt.EventQueue.access$500(EventQueue.java:98)
	at java.awt.EventQueue$3.run(EventQueue.java:715)
	at java.awt.EventQueue$3.run(EventQueue.java:709)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:90)
	at java.awt.EventQueue$4.run(EventQueue.java:737)
	at java.awt.EventQueue$4.run(EventQueue.java:735)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:734)
	at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:822)
	at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:646)
	at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:366)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

Android Studio 3.1.2
Build #AI-173.4720617, built on April 14, 2018
JRE: 1.8.0_152-release-1024-b01 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Linux 4.4.0-127-generic

Trying to open multiple svg files, gave folder to tool with batch check-box on.

在AS3.6 上启动崩了

这个工具非常棒,请大佬尽快修复(抱拳了

java.lang.NullPointerException
	at com.moxun.s2v.utils.CommonUtil.loadMetaInf(CommonUtil.java:56)
	at com.moxun.s2v.GUI.<init>(GUI.java:48)
	at com.moxun.s2v.S2V.actionPerformed(S2V.java:14)
	at com.intellij.openapi.actionSystem.ex.ActionUtil$1.run(ActionUtil.java:265)
	at com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAware(ActionUtil.java:282)
	at com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAwareWithCallbacks(ActionUtil.java:256)
	at com.intellij.openapi.actionSystem.impl.ActionButton.actionPerformed(ActionButton.java:194)
	at com.intellij.openapi.actionSystem.impl.ActionButton.performAction(ActionButton.java:157)
	at com.intellij.openapi.actionSystem.impl.ActionButton.processMouseEvent(ActionButton.java:434)
	at java.awt.Component.processEvent(Component.java:6315)
	at java.awt.Container.processEvent(Container.java:2239)
	at java.awt.Component.dispatchEventImpl(Component.java:4899)
	at java.awt.Container.dispatchEventImpl(Container.java:2297)
	at java.awt.Component.dispatchEvent(Component.java:4721)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4904)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4535)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4476)
	at java.awt.Container.dispatchEventImpl(Container.java:2283)
	at java.awt.Window.dispatchEventImpl(Window.java:2746)
	at java.awt.Component.dispatchEvent(Component.java:4721)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:766)
	at java.awt.EventQueue.access$500(EventQueue.java:98)
	at java.awt.EventQueue$3.run(EventQueue.java:715)
	at java.awt.EventQueue$3.run(EventQueue.java:709)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:84)
	at java.awt.EventQueue$4.run(EventQueue.java:739)
	at java.awt.EventQueue$4.run(EventQueue.java:737)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:736)
	at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:878)
	at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:823)
	at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$8(IdeEventQueue.java:466)
	at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:704)
	at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:465)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

it's not work. please fixed plugin..

hi

installed plugin my Android studio. after i try convert SVG file. i clicked "Generate" button when, "Event log" window show error message :

Plugin Error: SVG2VectorDrawable threw an uncaught NoSuchMethodError. Disable Plugin
NoSuchMethodError: com.intellij.ide.fileTemplates.FileTemplateManager.findInternalTemplate(Ljava/lang/String;)Lcom/intellij/ide/fileTemplates/FileTemplate;

so i report issue for you.

please fixed bug. thank you.

Plugin Error: SVG2VectorDrawable threw an uncaught NumberFormatException

See stacktrace:

For input string: "199.66" java.lang.NumberFormatException: For input string: "199.66" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) at java.lang.Integer.parseInt(Integer.java:580) at java.lang.Integer.valueOf(Integer.java:766) at com.moxun.s2v.utils.SVGAttrParser.getValue(SVGAttrParser.java:101) at com.moxun.s2v.utils.SVGAttrParser.getPathData(SVGAttrParser.java:71) at com.moxun.s2v.Transformer.parseShapeNode(Transformer.java:150) at com.moxun.s2v.Transformer.transforming(Transformer.java:77) at com.moxun.s2v.GUI$6.actionPerformed(GUI.java:131) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252) at java.awt.Component.processMouseEvent(Component.java:6533) at javax.swing.JComponent.processMouseEvent(JComponent.java:3324) at java.awt.Component.processEvent(Component.java:6298) at java.awt.Container.processEvent(Container.java:2236) at java.awt.Component.dispatchEventImpl(Component.java:4889) at java.awt.Container.dispatchEventImpl(Container.java:2294) at java.awt.Component.dispatchEvent(Component.java:4711) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4888) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4525) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4466) at java.awt.Container.dispatchEventImpl(Container.java:2280) at java.awt.Window.dispatchEventImpl(Window.java:2746) at java.awt.Component.dispatchEvent(Component.java:4711) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758) at java.awt.EventQueue.access$500(EventQueue.java:97) at java.awt.EventQueue$3.run(EventQueue.java:709) at java.awt.EventQueue$3.run(EventQueue.java:703) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86) at java.awt.EventQueue$4.run(EventQueue.java:731) at java.awt.EventQueue$4.run(EventQueue.java:729) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76) at java.awt.EventQueue.dispatchEvent(EventQueue.java:728) at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:857) at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:654) at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:386) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

on window 10 android studio 2.2.1

17:21:48 Plugin Error: SVG2VectorDrawable threw an uncaught StringIndexOutOfBoundsException. Disable Plugin
17:21:48 StringIndexOutOfBoundsException: String index out of range: -1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.