"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

Building dex Failed

Hi, I have this problem for the last two days in trying to export my AR project to my android device (samsung galaxy 10.1) and it gives me this "Buiding dex Failed" error. I use the the qualtomm target image with the lastest installation and unity3.4. I am not using the unity 3.5 because it does not show the emulator option unde the player setting - device filter option. I read some forums in regards to this issue but no solutions were found really if only the one mentioning to update to latest java - which it is. Error message: Building DEX Failed! C:\Softs Projects Documents\Unity3D\Unity3D_Android_XX5\Temp/StagingArea> java -Xmx1024M -Djava.ext.dirs="C:/Program Files (x86)/Android/android-sdk-windows\platform-tools/lib/" -jar "C:/Program Files (x86)/Android/android-sdk-windows\platform-tools/lib/dx.jar" --dex --verbose --output=bin/classes.dex bin/classes.jar plugins Error occurred during initialization of VM Could not reserve enough space for object heap Could not create the Java virtual machine. Thanks Rick

Are you trying to run the app in the Android emulator? This is not supported, QCAR only runs on supported devices. - Kim

No i am trying to ouput it to my device which is a samsung galaxy 10.1. I exported it ti android 2.2 or 3.1 and 3.2. As mentioned it works ok for any standard android project. It looks like the qulacomm/vuforia is causing the problem. I would really need to solve this isssu. Rick

DavidBeard

Wed, 03/07/2012 - 22:15

[QUOTE]Could not reserve enough space for object heap[/QUOTE] is associated an inability to allocate the necessary space in physical memory.

Hi, The dex has finally desappeared by defining the environment variable at 512m. Thanks On the other hand, it crashes the application when it appears on my device.

In regards to my previous email - the error message should say when opening on my device "application has stopped unexpectedly" . Thanks Rcihard

DavidBeard

Thu, 03/08/2012 - 02:01

Do you have eclipse installed? - are there errors apparent in LogCat? - do you see the app process in the DDMS panel? Also had you been able to install Vuforia apps on this device previously?

Hi, I am getting the following error in my DDMS console. I am not too familiar with Eclipse but enough to control the preferences and bring the SDK and AVD managers.See error message below. I never been able to intall the Vuforia application before.

Hi, I read on some unity forums that we may need to import some patches to support qcar sample projects.

DavidBeard

Fri, 03/09/2012 - 02:39

It looks like you have to get the Android Debug Bridge set-up correctly. Did you follow the Android and Eclipse set-up instruction in our Getting Started guide? Also can you confirm that adb.exe is actually at C:\Program Files (x86)\eclipse\platform-tools\adb.exe ?

Hi again, It finally worked using the unity3.5 version. I used one of the aqar exemple. I just need to figure out why my own tracker is not working using my personal project. Thanks Rick

It finally worked using unity 3.5 version. I tested it using one of the qcar project (tea pots). I still need to figure out why my own tracker is not working within my own project. Thanks Rick

DavidBeard

Fri, 03/09/2012 - 23:12

You mean Trackable (i.e. target image)? Be sure to configure both the ImageTarget and ARCamera for the trackable's dataset. A lot of people set-up one, but forget to set-up the other.

Yes i meant Trackable. And yes i had forgotten to configure my camera with the image. It works fine now. So i guess at the end it is a matter of version for the various plugins and application along with an extra environment variable. Thanks again. Rick