By p1000
on Fri, 12/26/2014 - 13:28
Hi Everyone,
I am migrating my functioning Eclipse project over to Android Studio and I am running into a crash. When I try to load the activity that contains the AR camera the app crashes with the following stacktrace:
java.lang.NoClassDefFoundError: java/lang/Runtime at java.lang.Runtime.nativeLoad(Native Method) at java.lang.Runtime.doLoad(Runtime.java:421) at java.lang.Runtime.loadLibrary(Runtime.java:362) at java.lang.System.loadLibrary(System.java:526) at com.qualcomm.vuforia.VuforiaJNI.loadLibrary(VuforiaJNI.java:17) at com.qualcomm.vuforia.VuforiaJNI.<clinit>(VuforiaJNI.java:35) at com.qualcomm.vuforia.Vuforia.setHint(Vuforia.java:115) at com.qualcomm.vuforia.Vuforia.setHint(Vuforia.java:23) at com.qualcomm.vuforia.Vuforia.setInitParameters(Vuforia.java:28) at com.xperiel.android.api.ui.vuforia.VuforiaPresenter$4.run(VuforiaPresenter.java:185) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) at java.lang.Thread.run(Thread.java:841) Caused by: java.lang.NoClassDefFoundError: java/lang/Runtime at java.lang.Runtime.nativeLoad(Native Method) at java.lang.Runtime.doLoad(Runtime.java:421) at java.lang.Runtime.loadLibrary(Runtime.java:362) at java.lang.System.loadLibrary(System.java:526) at com.qualcomm.vuforia.VuforiaJNI.loadLibrary(VuforiaJNI.java:17) at com.qualcomm.vuforia.VuforiaJNI.<clinit>(VuforiaJNI.java:35) at com.qualcomm.vuforia.Vuforia.setHint(Vuforia.java:115) at com.qualcomm.vuforia.Vuforia.setHint(Vuforia.java:23) at com.qualcomm.vuforia.Vuforia.setInitParameters(Vuforia.java:28) at com.xperiel.android.api.ui.vuforia.VuforiaPresenter$4.run(VuforiaPresenter.java:185) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) at java.lang.Thread.run(Thread.java:841) Caused by: java.lang.NoClassDefFoundError: com/qualcomm/ar/pl/RenderManager at java.lang.Runtime.nativeLoad(Native Method) at java.lang.Runtime.doLoad(Runtime.java:421) at java.lang.Runtime.loadLibrary(Runtime.java:362) at java.lang.System.loadLibrary(System.java:526) at com.qualcomm.vuforia.VuforiaJNI.loadLibrary(VuforiaJNI.java:17) at com.qualcomm.vuforia.VuforiaJNI.<clinit>(VuforiaJNI.java:35) at com.qualcomm.vuforia.Vuforia.setHint(Vuforia.java:115) at com.qualcomm.vuforia.Vuforia.setHint(Vuforia.java:23) at com.qualcomm.vuforia.Vuforia.setInitParameters(Vuforia.java:28) at com.xperiel.android.api.ui.vuforia.VuforiaPresenter$4.run(VuforiaPresenter.java:185) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) at java.lang.Thread.run(Thread.java:841) Caused by: java.lang.NoClassDefFoundError: com/qualcomm/ar/pl/SystemTools at java.lang.Runtime.nativeLoad(Native Method) at java.lang.Runtime.doLoad(Runtime.java:421) at java.lang.Runtime.loadLibrary(Runtime.java:362) at java.lang.System.loadLibrary(System.java:526) at com.qualcomm.vuforia.VuforiaJNI.loadLibrary(VuforiaJNI.java:17) at com.qualcomm.vuforia.VuforiaJNI.<clinit>(VuforiaJNI.java:35) at com.qualcomm.vuforia.Vuforia.setHint(Vuforia.java:115) at com.qualcomm.vuforia.Vuforia.setHint(Vuforia.java:23) at com.qualcomm.vuforia.Vuforia.setInitParameters(Vuforia.java:28) at com.xperiel.android.api.ui.vuforia.VuforiaPresenter$4.run(VuforiaPresenter.java:185) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) at java.lang.Thread.run(Thread.java:841) Caused by: java.lang.NoClassDefFoundError: com/qualcomm/ar/pl/SensorController at java.lang.Runtime.nativeLoad(Native Method) at java.lang.Runtime.doLoad(Runtime.java:421) at java.lang.Runtime.loadLibrary(Runtime.java:362) at java.lang.System.loadLibrary(System.java:526) at com.qualcomm.vuforia.VuforiaJNI.loadLibrary(VuforiaJNI.java:17) at com.qualcomm.vuforia.VuforiaJNI.<clinit>(VuforiaJNI.java:35) at com.qualcomm.vuforia.Vuforia.setHint(Vuforia.java:115) at com.qualcomm.vuforia.Vuforia.setHint(Vuforia.java:23) at com.qualcomm.vuforia.Vuforia.setInitParameters(Vuforia.java:28) at com.xperiel.android.api.ui.vuforia.VuforiaPresenter$4.run(VuforiaPresenter.java:185) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) at java.lang.Thread.run(Thread.java:841) Caused by: java.lang.NoClassDefFoundError: com/qualcomm/ar/pl/SystemTools at java.lang.Runtime.nativeLoad(Native Method) at java.lang.Runtime.doLoad(Runtime.java:421) at java.lang.Runtime.loadLibrary(Runtime.java:362) at java.lang.System.loadLibrary(System.java:526) at com.qualcomm.vuforia.VuforiaJNI.loadLibrary(VuforiaJNI.java:17) at com.qualcomm.vuforia.VuforiaJNI.<clinit>(VuforiaJNI.java:35) at com.qualcomm.vuforia.Vuforia.setHint(Vuforia.java:115) at com.qualcomm.vuforia.Vuforia.setHint(Vuforia.java:23) at com.qualcomm.vuforia.Vuforia.setInitParameters(Vuforia.java:28) at com.xperiel.android.api.ui.vuforia.VuforiaPresenter$4.run(VuforiaPresenter.java:185) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) at java.lang.Thread.run(Thread.java:841) Caused by: java.lang.NoClassDefFoundError: com/qualcomm/ar/pl/ARHttpClient at java.lang.Runtime.nativeLoad(Native Method) at java.lang.Runtime.doLoad(Runtime.java:421) at java.lang.Runtime.loadLibrary(Runtime.java:362) at java.lang.System.loadLibrary(System.java:526) at com.qualcomm.vuforia.VuforiaJNI.loadLibrary(VuforiaJNI.java:17) at com.qualcomm.vuforia.VuforiaJNI.<clinit>(VuforiaJNI.java:35) at com.qualcomm.vuforia.Vuforia.setHint(Vuforia.java:115) at com.qualcomm.vuforia.Vuforia.setHint(Vuforia.java:23) at com.qualcomm.vuforia.Vuforia.setInitParameters(Vuforia.java:28) at com.xperiel.android.api.ui.vuforia.VuforiaPresenter$4.run(VuforiaPresenter.java:185) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) at java.lang.Thread.run(Thread.java:841) Caused by: java.lang.NoClassDefFoundError: com/qualcomm/ar/pl/FileTools at java.lang.Runtime.nativeLoad(Native Method) at java.lang.Runtime.doLoad(Runtime.java:421) at java.lang.Runtime.loadLibrary(Runtime.java:362) at java.lang.System.loadLibrary(System.java:526) at com.qualcomm.vuforia.VuforiaJNI.loadLibrary(VuforiaJNI.java:17) at com.qualcomm.vuforia.VuforiaJNI.<clinit>(VuforiaJNI.java:35) at com.qualcomm.vuforia.Vuforia.setHint(Vuforia.java:115) at com.qualcomm.vuforia.Vuforia.setHint(Vuforia.java:23) at com.qualcomm.vuforia.Vuforia.setInitParameters(Vuforia.java:28) at com.xperiel.android.api.ui.vuforia.VuforiaPresenter$4.run(VuforiaPresenter.java:185) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) at java.lang.Thread.run(Thread.java:841) Caused by: java.lang.NoClassDefFoundError: javax/crypto/Cipher at java.lang.Runtime.nativeLoad(Native Method) at java.lang.Runtime.doLoad(Runtime.java:421) at java.lang.Runtime.loadLibrary(Runtime.java:362) at java.lang.System.loadLibrary(System.java:526) at com.qualcomm.vuforia.VuforiaJNI.loadLibrary(VuforiaJNI.java:17) at com.qualcomm.vuforia.VuforiaJNI.<clinit>(VuforiaJNI.java:35) at com.qualcomm.vuforia.Vuforia.setHint(Vuforia.java:115) at com.qualcomm.vuforia.Vuforia.setHint(Vuforia.java:23) at com.qualcomm.vuforia.Vuforia.setInitParameters(Vuforia.java:28) at com.xperiel.android.api.ui.vuforia.VuforiaPresenter$4.run(VuforiaPresenter.java:185) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) at java.lang.Thread.run(Thread.java:841) Caused by: java.lang.NoClassDefFoundError: java/util/Vector at com.qualcomm.ar.pl.CameraPreview.init(CameraPreview.java:860) at java.lang.Runtime.nativeLoad(Native Method) at java.lang.Runtime.doLoad(Runtime.java:421) at java.lang.Runtime.loadLibrary(Runtime.java:362) at java.lang.System.loadLibrary(System.java:526) at com.qualcomm.vuforia.VuforiaJNI.loadLibrary(VuforiaJNI.java:17) at com.qualcomm.vuforia.VuforiaJNI.<clinit>(VuforiaJNI.java:35) at com.qualcomm.vuforia.Vuforia.setHint(Vuforia.java:115) at com.qualcomm.vuforia.Vuforia.setHint(Vuforia.java:23) at com.qualcomm.vuforia.Vuforia.setInitParameters(Vuforia.java:28) at com.xperiel.android.api.ui.vuforia.VuforiaPresenter$4.run(VuforiaPresenter.java:185) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) at java.lang.Thread.run(Thread.java:841) Caused by: java.lang.NoSuchMethodError: no static or non-static method "Lcom/qualcomm/ar/pl/CameraPreview;.newFrameAvailable(IIII[BJ)V" at java.lang.Runtime.nativeLoad(Native Method) at java.lang.Runtime.doLoad(Runtime.java:421) at java.lang.Runtime.loadLibrary(Runtime.java:362) at java.lang.System.loadLibrary(System.java:526) at com.qualcomm.vuforia.VuforiaJNI.loadLibrary(VuforiaJNI.java:17) at com.qualcomm.vuforia.VuforiaJNI.<clinit>(VuforiaJNI.java:35) at com.qualcomm.vuforia.Vuforia.setHint(Vuforia.java:115) at com.qualcomm.vuforia.Vuforia.setHint(Vuforia.java:23) at com.qualcomm.vuforia.Vuforia.setInitParameters(Vuforia.java:28) at com.xperiel.android.api.ui.vuforia.VuforiaPresenter$4.run(VuforiaPresenter.java:185) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) at java.lang.Thread.run(Thread.java:841)Has anyone dealt with this before? I am very new to Android Studio and building with Gradle, so any help would be much appreciated!
Thanks!