"We offer new support options and therefor the forums are now in read-only mode! Please check out our Support Center for more information." - Vuforia Engine Team

Proguard problems -Release version Android Market

Hi, I am trying to build a simple project for release in the Android Market. I enable proguard in my default.properties file When I do this and run the apk on the device my app crashes. When i see the LogCat output I see the following error [B]FATAL EXCEPTION: main java.lang.ExceptionInInitializerError [/B] [B]10-13 11:45:04.695: ERROR/AndroidRuntime(5656): FATAL EXCEPTION: main 10-13 11:45:04.695: ERROR/AndroidRuntime(5656): java.lang.ExceptionInInitializerError 10-13 11:45:04.695: ERROR/AndroidRuntime(5656): at java.lang.Class.newInstanceImpl(Native Method) 10-13 11:45:04.695: ERROR/AndroidRuntime(5656): at java.lang.Class.newInstance(Class.java:1409) 10-13 11:45:04.695: ERROR/AndroidRuntime(5656): at android.app.Instrumentation.newActivity(Instrumentation.java:1021) 10-13 11:45:04.695: ERROR/AndroidRuntime(5656): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1565) 10-13 11:45:04.695: ERROR/AndroidRuntime(5656): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1667) 10-13 11:45:04.695: ERROR/AndroidRuntime(5656): at android.app.ActivityThread.access$1500(ActivityThread.java:117) 10-13 11:45:04.695: ERROR/AndroidRuntime(5656): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:935) 10-13 11:45:04.695: ERROR/AndroidRuntime(5656): at android.os.Handler.dispatchMessage(Handler.java:99) 10-13 11:45:04.695: ERROR/AndroidRuntime(5656): at android.os.Looper.loop(Looper.java:123) 10-13 11:45:04.695: ERROR/AndroidRuntime(5656): at android.app.ActivityThread.main(ActivityThread.java:3687) 10-13 11:45:04.695: ERROR/AndroidRuntime(5656): at java.lang.reflect.Method.invokeNative(Native Method) 10-13 11:45:04.695: ERROR/AndroidRuntime(5656): at java.lang.reflect.Method.invoke(Method.java:507) 10-13 11:45:04.695: ERROR/AndroidRuntime(5656): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:842) 10-13 11:45:04.695: ERROR/AndroidRuntime(5656): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600) 10-13 11:45:04.695: ERROR/AndroidRuntime(5656): at dalvik.system.NativeStart.main(Native Method) 10-13 11:45:04.695: ERROR/AndroidRuntime(5656): Caused by: java.lang.NoClassDefFoundError: com.qualcomm.QCAR.BitmapSurface 10-13 11:45:04.695: ERROR/AndroidRuntime(5656): at java.lang.Runtime.nativeLoad(Native Method) 10-13 11:45:04.695: ERROR/AndroidRuntime(5656): at java.lang.Runtime.loadLibrary(Runtime.java:432) 10-13 11:45:04.695: ERROR/AndroidRuntime(5656): at java.lang.System.loadLibrary(System.java:554) 10-13 11:58:16.921: ERROR/DataRouter(81): __initialize_usb_ipc before accept ....[/B] How should I configure the proguard.cfg in order to avoid this error??? I tried several options in proguard according to Proguard manual but with no luck... Thanks in advance, Andreas

Hello Al,

I followed your steps and configured ProGuard for my video player project. I was able to export the APK succesfully. But, the app is crashing when invoked from the real device. I think ProGurad is avoiding/wrapping up the native methods. How can I fix the issue?