Problem running example code.

  ... the SVG Extension for AndEngine.

Problem running example code.

Postby JFerret » Sat Jun 18, 2011 8:43 pm

Hello,
I have copied the example code from http://code.google.com/p/andengineexamp ... ample.java. I have also downloaded and added the andenginesvgtextureregionextension.jar to my lib folder from http://andengineexamples.googlecode.com ... ension.jar. It is added to my buildpath. Yet, I get this error upon running the project:

06-18 18:34:08.242: ERROR/AndroidRuntime(384): java.lang.NoClassDefFoundError: org.anddev.andengine.extension.svg.opengl.texture.source.SVGAssetTextureSource
06-18 18:34:08.242: ERROR/AndroidRuntime(384): at org.anddev.andengine.extension.svg.opengl.texture.region.SVGTextureRegionFactory.createFromAsset(SVGTextureRegionFactory.java:154)
06-18 18:34:08.242: ERROR/AndroidRuntime(384): at org.anddev.andengine.extension.svg.opengl.texture.region.SVGTextureRegionFactory.createFromAsset(SVGTextureRegionFactory.java:146)
06-18 18:34:08.242: ERROR/AndroidRuntime(384): at possession.scene.Possession.onLoadResources(Possession.java:63)
06-18 18:34:08.242: ERROR/AndroidRuntime(384): at org.anddev.andengine.ui.activity.BaseGameActivity.doResume(BaseGameActivity.java:158)
06-18 18:34:08.242: ERROR/AndroidRuntime(384): at org.anddev.andengine.ui.activity.BaseGameActivity.onWindowFocusChanged(BaseGameActivity.java:83)
06-18 18:34:08.242: ERROR/AndroidRuntime(384): at com.android.internal.policy.impl.PhoneWindow$DecorView.onWindowFocusChanged(PhoneWindow.java:1981)
06-18 18:34:08.242: ERROR/AndroidRuntime(384): at android.view.View.dispatchWindowFocusChanged(View.java:3788)
06-18 18:34:08.242: ERROR/AndroidRuntime(384): at android.view.ViewGroup.dispatchWindowFocusChanged(ViewGroup.java:658)
06-18 18:34:08.242: ERROR/AndroidRuntime(384): at android.view.ViewRoot.handleMessage(ViewRoot.java:1921)
06-18 18:34:08.242: ERROR/AndroidRuntime(384): at android.os.Handler.dispatchMessage(Handler.java:99)
06-18 18:34:08.242: ERROR/AndroidRuntime(384): at android.os.Looper.loop(Looper.java:123)
06-18 18:34:08.242: ERROR/AndroidRuntime(384): at android.app.ActivityThread.main(ActivityThread.java:4627)
06-18 18:34:08.242: ERROR/AndroidRuntime(384): at java.lang.reflect.Method.invokeNative(Native Method)
06-18 18:34:08.242: ERROR/AndroidRuntime(384): at java.lang.reflect.Method.invoke(Method.java:521)
06-18 18:34:08.242: ERROR/AndroidRuntime(384): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
06-18 18:34:08.242: ERROR/AndroidRuntime(384): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
06-18 18:34:08.242: ERROR/AndroidRuntime(384): at dalvik.system.NativeStart.main(Native Method)

Not sure why it cannot find it. Any thoughts?
JFerret
 
Posts: 4
Joined: Tue May 10, 2011 5:14 pm

Re: Problem running example code.

Postby JFerret » Sun Jun 19, 2011 4:26 pm

This is fixed. I had an outdated andengine.jar in the project I copied the code into. :oops:
JFerret
 
Posts: 4
Joined: Tue May 10, 2011 5:14 pm


Return to SVG

Who is online

Users browsing this forum: No registered users and 2 guests