Hello, I'm trying to load in a .svg file but I get these errors:
- FATAL EXCEPTION: Animation Thread
java.lang.IllegalArgumentException: http://apache.org/xml/features/nonvalidating/load-external-dtd
at org.apache.harmony.xml.parsers.DocumentBuilderFactoryImpl.setAttribute(DocumentBuilderFactoryImpl.java:86)
at processing.core.XML.<init>(Unknown Source)
at processing.core.XML.<init>(Unknown Source)
at processing.core.PShapeSVG.<init>(Unknown Source)
at processing.core.PApplet.loadShape(Unknown Source)
at processing.core.PApplet.loadShape(Unknown Source)
at changethispackage.beforesubmitting.tothemarket.helloandroid_zip.HelloAndroid_zip.setup(HelloAndroid_zip.java:38)
at processing.core.PApplet.handleDraw(Unknown Source)
at processing.core.PGraphicsAndroid2D.requestDraw(Unknown Source)
at processing.core.PApplet.run(Unknown Source)
at java.lang.Thread.run(Thread.java:1019)
I'm compiling this for Android 2.3.4 on a Sony Xperia Play and have the Test.svg file in the data folder.
- PShape s;
void setup() {
s = loadShape("Test.svg");
smooth();
noLoop();
}
void draw() {
shape(s, 10, 10);
}
Thanks for any help
1