Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

android: error when converting XML to SVG for table or image fields #50

Closed
e-marchand opened this issue Aug 2, 2023 · 5 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@e-marchand
Copy link
Collaborator

Exception in thread "main" java.lang.NoSuchMethodError: 'java.lang.String >
com.android.ide.common.vectordrawable.Svg2Vector.parseSvgToXml(java.io.File, java.io.OutputStream)'\n\tat 
com.android.ide.common.vectordrawable.VdCommandLineTool.convertSVGToXml(VdCommandLineTool.java:226)\n\tat 
com.android.ide.common.vectordrawable.VdCommandLineTool.main(VdCommandLineTool.java:80)

returned by vd-tool.jar

@e-marchand e-marchand self-assigned this Aug 2, 2023
@e-marchand
Copy link
Collaborator Author

seems to be from previous android studio too (eel)

not a lot of diff in jar files list

Class seems to present also in new version at same place

/Applications/Android Studio Eel.app/Contents/plugins/android/lib/sdk-common.jar
34573 Fri Jan 01 00:00:02 CET 2010 com/android/ide/common/vectordrawable/Svg2Vector.class

@e-marchand e-marchand added the bug Something isn't working label Aug 2, 2023
@e-marchand
Copy link
Collaborator Author

in java eel public static java.lang.String parseSvgToXml(java.io.File, java.io.OutputStream) throws java.io.IOException;

in java flamingo
public static java.lang.String parseSvgToXml(java.nio.file.Path, java.io.OutputStream) throws java.io.IOException;

so a change in file api

@e-marchand
Copy link
Collaborator Author

e-marchand commented Aug 3, 2023

to build vdtool with android studio sources maybe

https://www.androiddesignpatterns.com/2018/11/android-studio-svg-to-vector-cli.html

need a lot of disk space

repo init -u https://android.googlesource.com/platform/manifest -b  <branch name>
repo sync -j8 -c
cd ./tools/base
../gradlew publishLocal

to intall repo on macOS use brew

a script that I edit to set branch : studio-2022.2.1
https://gist.github.com/michpohl/c193f78fb8554cfae6c281244f87f7e9

@e-marchand
Copy link
Collaborator Author

commited in main 2d64a57

@e-marchand
Copy link
Collaborator Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant