Good afternoon everybody,
I'm trying to extend a Unity Android Activity and adding custom views in Eclipse.
I've used Unity3d 4.0 Pro Trial Version to export a project to Eclipse and force the Android tarjet to v2.2.
I've followed this guide https://developer.vuforia.com/resources/dev-guide/extending-unity-android-activity-and-adding-custom-views-eclipse.
On Unity I can generate the .APK with my own 3d model and it run perfectly in my Android device. Then, after build tha Android library based on /StartingArea folder from Unity project and build an Android project to call this library as the guide says, Elcipse show me the next errors at Run time::
02-14 16:47:53.700: E/AndroidRuntime(1031): FATAL EXCEPTION: main
02-14 16:47:53.700: E/AndroidRuntime(1031): java.lang.NoClassDefFoundError: com.qualcomm.QCARUnityPlayer.QCARUnityPlayer
02-14 16:47:53.700: E/AndroidRuntime(1031): at com.qualcomm.QCARUnityPlayer.QCARPlayerSharedActivity.onCreate(QCARPlayerSharedActivity.java:210)
02-14 16:47:53.700: E/AndroidRuntime(1031): at com.qualcomm.QCARUnityPlayer.QCARPlayerActivity.onCreate(QCARPlayerActivity.java:37)
02-14 16:47:53.700: E/AndroidRuntime(1031): at com.Viso.ARUnityVuforia.QCARJavaActivity.onCreate(QCARJavaActivity.java:21)
02-14 16:47:53.700: E/AndroidRuntime(1031): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1048)
02-14 16:47:53.700: E/AndroidRuntime(1031): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1715)
02-14 16:47:53.700: E/AndroidRuntime(1031): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1767)
02-14 16:47:53.700: E/AndroidRuntime(1031): at android.app.ActivityThread.access$1500(ActivityThread.java:122)
02-14 16:47:53.700: E/AndroidRuntime(1031): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1005)
02-14 16:47:53.700: E/AndroidRuntime(1031): at android.os.Handler.dispatchMessage(Handler.java:99)
02-14 16:47:53.700: E/AndroidRuntime(1031): at android.os.Looper.loop(Looper.java:132)
02-14 16:47:53.700: E/AndroidRuntime(1031): at android.app.ActivityThread.main(ActivityThread.java:4028)
02-14 16:47:53.700: E/AndroidRuntime(1031): at java.lang.reflect.Method.invokeNative(Native Method)
02-14 16:47:53.700: E/AndroidRuntime(1031): at java.lang.reflect.Method.invoke(Method.java:491)
02-14 16:47:53.700: E/AndroidRuntime(1031): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:844)
02-14 16:47:53.700: E/AndroidRuntime(1031): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:602)
02-14 16:47:53.700: E/AndroidRuntime(1031): at dalvik.system.NativeStart.main(Native Method)
Anyone can help me please?¿
This is the AndroidProject's file system ready to call the library::
and this is the library project file system on Eclipse
Thanks in advance.,
You're welcome.
Of cousrse, if you find some solution or tip/trick that is worth sharing with the Vuforia community (for instance some special Unity or Eclipse settings or procedure), you are more than welcome to post back here!