processing / processing-android-archive

96 stars 50 forks source link

Some classes from my library can't be found on android #62

Closed kiwistrongis closed 10 years ago

kiwistrongis commented 10 years ago

Hi there,

I'm working on getting SMT to work with processing for android. I've run into something that has me a little stumped. I'm running this sketch.

I get this logcat output:

E/AndroidRuntime(24911): java.lang.NoClassDefFoundError: vialab.SMT.MainZone
E/AndroidRuntime(24911):    at vialab.SMT.SMT.init(SMT.java:240)
E/AndroidRuntime(24911):    at vialab.SMT.SMT.init(SMT.java:209)
E/AndroidRuntime(24911):    at processing.test.android.android.setup(android.java:28)
E/AndroidRuntime(24911):    at processing.core.PApplet.handleDraw(Unknown Source)
E/AndroidRuntime(24911):    at processing.opengl.PGL$AndroidRenderer.onDrawFrame(Unknown Source)
E/AndroidRuntime(24911):    at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1462)
E/AndroidRuntime(24911):    at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1216)

This tells me that the sketch can find vialab.SMT.SMT, but not vialab.SMT.MainZone. My best guess is that the jar file isn't being dexed properly? Any advice would be appreciated :). Right now my new strategy is to rebase SMT on processing-android-library-template

kiwistrongis commented 10 years ago

I've given up, and taken a different approach. Closing.