Android apk builds fine, but shows ClassDefNotFound error when running
I am using Netbeans 7.1.1 and nbandroid plugin updated to latest this morning. When I made a build, everything built fine. I installed the apk on a device that is running Android 2.3.3. I am using sdk tools r19.

I see java.lang.NoClassDefFoundError in logcat when I try to start it.<br>
My ant build script is copying all the libs the apk depends on to its libs directory and building it. For some reason, some classes are not getting packaged into the apk.<br>

Is it a known issue?<br>
Is there a workaround?<br>
I see some workarounds for eclipse along the lines of creating a libs folder (instead of lib folder) under project dir. I have libs property <b>jar.libs.dir</b> configured to point to a folder outside of my project. This all seemed to work before, not now.

Thanks<br>
Joe
Android apk builds fine, but shows ClassDefNotFound error when running
===

I am using Netbeans 7.1.1 and nbandroid plugin updated to latest this morning. When I made a build, everything built fine. I installed the apk on a device that is running Android 2.3.3. I am using sdk tools r19.

I see java.lang.NoClassDefFoundError in logcat when I try to start it.<br>
My ant build script is copying all the libs the apk depends on to its libs directory and building it. For some reason, some classes are not getting packaged into the apk.<br>

Is it a known issue?<br>
Is there a workaround?<br>
I see some workarounds for eclipse along the lines of creating a libs folder (instead of lib folder) under project dir. I have libs property <b>jar.libs.dir</b> configured to point to a folder outside of my project. This all seemed to work before, not now.

Thanks<br>
Joe