"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

Integrate Unity and Eclipse: Unable to execute dex

Hi,

I have an Android project working in Unity. I built the apk and the app works fine. Now I want to integrate this part inside of my application in Eclipse. I followed these steps:

https://developer.vuforia.com/resources/dev-guide/extending-unity-android-activity-and-adding-custom-views-eclipse

I didn't reach the Code Changes part, I stopped at the step 15 of the Integration Steps, and there I get an error if I try to run the application. I tried it twice from scratch, so I don't think I missed any step.

I'm getting the following error:

[2013-03-27 10:23:40 - Dex Loader] Unable to execute dex: Multiple dex files define Lcom/qualcomm/QCARUnityPlayer/R$attr;

If I remove QCAR.jar and QCARUnityPlayer.jar from QCARJava /libs folder the error is gone, but then the application crashes because it can't find com.qualcomm.QCARUnityPlayer.QCARPlayerProxyActivity.

I tried to clean both projects and to remove the QCARJava /bin folder but the problem is still there. This is my project explorer:

http://img109.imageshack.us/img109/2366/qcarfileexplorer.png

Anybody knows what might be causing this error and how can I fix it? Is it because there's a qcarunity.jar inside QCARUnity /bin?

Thanks!

I've done those steps and the error is still the same. 

When I import the QCARUnity in eclipse (step 6), I need to change project.properties to remove some errors. In project.properties android-target is set to 8, and I need it to be 17, otherwise the attributes:

Ok, with a different package name that error is gone. If someone else finds this error, you cannot use com.qualcomm.QCARUnityPlayer as your package name.

But now I found myself with another error when the app starts: