my prblem was solved by remaking the ofAndroidLib build.xml file:
see note after step p)
Note: If you get an error about an obsolete build.xml, you can safely delete the build.xml file and recreate it using ‘android update project’. (The ‘android’ tool is at SDK_DIR/tools/android.) You may also need to do this for openFrameworks/addons/ofxAndroid/ofAndroidLib.
not sure if this will help but what NDK version are u using?
i couldn’t get my install to work with the NDK version linked from the instructions and ended using r7, also it is recommended to use 8 for OF0071.
let me know if this helps!
I’m experiencing the exact same thing. I’m using the 0073 release, NDK r8b, and just trying to compile any of the included examples.
Just like mentioned, they build fine, but crash with the same “Unable to instantiate activity ComponentInfo … ClassNotFoundException: cc.openFrameworks.androidPolygonExample.OFActivity” nonsense.
I’m tearing my hair out, here. I actually wiped and installed a fresh copy of Ubuntu on a second computer to try it out there but experienced *exactly* the same thing.
Has anyone else with this problem found a workaround?
Yeah, I finally found this thread. I’m in the same spot. 0073, r8b and the dreaded java.lang.ClassNotFoundException. I’m about to revert to an older ndk and other version of OF to at least get something working to show for my time/hair/sweat
okay, I’ve made a lot of noise on the forums here today … this issue is resolved.
I upgraded to OF 0.7.4 (which is brand new) and NDK r8d and following the instructions, my classes are generated correctly and my activity loads as expected! Success!! Thanks to all who worked on this latest release!