By smek
on Wed, 07/04/2012 - 13:12
Hello all,
I want to use my Unity ar project in a app I already made as a new activity. Now I'm following this example:
http://forum.unity3d.com/threads/71607-Integrating-Unity-and-Eclipse
and
http://docs.unity3d.com/Documentation/Manual/PluginsForAndroid.html
But it wont work I'm getting errors like:
Unable to resolve superclass of OverrideExample
and
NoClassDefFoundError
Any ideas how to do it the right way?
Using ar unity as android app module
Try these steps..
Using ar unity as android app module
[quote=DavidBeard]
Try these steps..
Using ar unity as android app module
Ok I tried the steps many times today but I still getting errors when I run it on my device.
In my log:
Using ar unity as android app module
Yes that appears to be the same document ( thanks for catching that ). The errors that you're getting appear to derive from a native invocation (e.g. to a C++ shared library ).
Using ar unity as android app module
That's strange I have this:
https://docs.google.com/file/d/0B-YKBtylPP4pR3ZiUkQ5V2tTT28/edit
And still it does not work could there be someting else what is wrong?
Using ar unity as android app module
I wonder if Proguard is playing a role. Do you see the same when building in Debug mode?
Using ar unity as android app module
Yes I see the same when in debug mode.
Using ar unity as android app module
Could it be the problem that I don't have ndk installed? Is this required?
Using ar unity as android app module
The NDK is required for the native Android SDK. But you should be able to use the shared libraries from Unity without it. Have you confirmed that these run as a stand-alone Unity project?
Using ar unity as android app module
Nope I created the project from Unity. So this is not the solution of the problem grr.
Using ar unity as android app module
Can you send me the project?
Using ar unity as android app module
Yes see your inbox.
Using ar unity as android app module
Any ideas what it could be? I'm using the new sdk I read that they changed the way jar files are loaded you should now add them to the libs folder but when I do that it does not work eather.
Using ar unity as android app module
Was this issue solved. I am getting the same error after follwinng the documented steps http://forum.unity3d.com/threads/71607-Integrating-Unity-and-Eclipse