I have compiled the sample project "ImageTargets" in Android, but i get error message "Unfortunately, ImageTarget has stopped" at runtime when i click "Start" button in user interface of the application.
Sorry for this duplicate thread, but other threads about this problem didn't help to solve my issue.
Here are details about my progress:
- I'm using Vuforia SDK v2.0 , ADT 21.0 ,
- I've copied the sample project under "samples" folder in Vuforia SDK folder.
- I've compiled native source via NDK r8d.
- I've checked all checkboxes under "Order and Export" tab in Properties->Java Build Path.
- I've cleaned project, refreshed it and restarted Eclipse several times.
Here is my Logcat output:
02-11 08:56:29.302: W/dalvikvm(878): threadid=12: thread exiting with uncaught exception (group=0x40a70930)
02-11 08:56:29.312: E/AndroidRuntime(878): FATAL EXCEPTION: GLThread 83
02-11 08:56:29.312: E/AndroidRuntime(878): java.lang.IllegalArgumentException: No matching EGL configs
02-11 08:56:29.312: E/AndroidRuntime(878): at com.qualcomm.QCARSamples.ImageTargets.QCARSampleGLView$ConfigChooser.getMatchingConfig(QCARSampleGLView.java:151)
02-11 08:56:29.312: E/AndroidRuntime(878): at com.qualcomm.QCARSamples.ImageTargets.QCARSampleGLView$ConfigChooser.chooseConfig(QCARSampleGLView.java:181)
02-11 08:56:29.312: E/AndroidRuntime(878): at android.opengl.GLSurfaceView$EglHelper.start(GLSurfaceView.java:1024)
02-11 08:56:29.312: E/AndroidRuntime(878): at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1401)
02-11 08:56:29.312: E/AndroidRuntime(878): at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1240)
Unfortunately, ImageTarget has stopped
Hi,
at a first glance it looks like Vuforia is unable to get a proper OpenGL config on your device;
could you specify device, model, and Android version ?
Unfortunately, ImageTarget has stopped
I am using Virtual Devices provided by ADT. I've tested it using various virtual devices using Android 1.7 and API Level 17. I've increased their RAM to 1024 MB.
Should it be a compatibility issue about virtual devices? If it is, i may try it in a real device.
Unfortunately, ImageTarget has stopped
Vuforia on Android can only run on a real device. So, you cannot test it on Virtual Devices.
Unfortunately, ImageTarget has stopped
Thank you for your immediate response, AlessandroB!
I've tried it in a real Samsung device, and it worked perfectly.
Unfortunately, ImageTarget has stopped
You're welcome.
Unfortunately, ImageTarget has stopped
on android studio.
the original imagetarget sample.
compile, but when run on real device (nexus 4) - get "unfortunately imagetarget has stopped"
Unfortunately, ImageTarget has stopped
What is the error message log ?
Unfortunately, ImageTarget has stopped
This forum is messed up.
what is first post? where is last? who reply to who?
very strange...
anyway,
after having a runtime crash with android studio, i compiled NDK-BUILD and i passed into a new problem.
Unfortunately, ImageTarget has stopped
Hi, the Foum thread are sorted bottom-up, i.e. the last message is the one that you see at the top of the thread;
concerning Android Studio, I have passed your message to our team, I'll revert back to you as soon as I have some update
Unfortunately, ImageTarget has stopped
Hi again, quick update:
I manage to sucessfully import, build and run the Vuforia samples (Image Targets for instance) with Android Studio, this is what I did:
Android Studio - Unfortunately, ImageTarget has stopped
Update:
The Vuforia Samples 5.0.10 support Android Studio and are already packaged in Android Studio compatible format:
https://developer.vuforia.com/downloads/samples