Error launching Unity activity in Eclipse

Hi All This is my first time integrating Unity with Eclipse ,I’m sure checked this document
http://unity3d.com/support/documentation/Manual/Android-Integrating%20Unity%20With%20Eclipse.html ,so
I want run unity project in Eclipse. but LogCat "could not find “com.unity3d.player.UnityPlayerActivity” " or

03-29 06:59:30.390: W/dalvikvm(335): Unable to resolve superclass of Lorg/zknine/test/MyGameActivity; (4)

03-29 06:59:30.390: W/dalvikvm(335): Link of class ‘Lorg/zknine/test/MyGameActivity;’ failed

03-29 06:59:30.390: D/AndroidRuntime(335): Shutting down VM

03-29 06:59:30.390: W/dalvikvm(335): threadid=1: thread exiting with uncaught exception (group=0x40015560)

03-29 06:59:30.471: E/AndroidRuntime(335): FATAL EXCEPTION: main

03-29 06:59:30.471: E/AndroidRuntime(335): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{org.zknine.test/org.zknine.test.MyGameActivity}: java.lang.ClassNotFoundException: org.zknine.test.MyGameActivity in loader dalvik.system.PathClassLoader[/data/app/org.zknine.test-1.apk]

03-29 06:59:30.471: E/AndroidRuntime(335): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1569)

03-29 06:59:30.471: E/AndroidRuntime(335): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663)

03-29 06:59:30.471: E/AndroidRuntime(335): at android.app.ActivityThread.access$1500(ActivityThread.java:117)

03-29 06:59:30.471: E/AndroidRuntime(335): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)

03-29 06:59:30.471: E/AndroidRuntime(335): at android.os.Handler.dispatchMessage(Handler.java:99)

03-29 06:59:30.471: E/AndroidRuntime(335): at android.os.Looper.loop(Looper.java:123)

03-29 06:59:30.471: E/AndroidRuntime(335): at android.app.ActivityThread.main(ActivityThread.java:3683)

03-29 06:59:30.471: E/AndroidRuntime(335): at java.lang.reflect.Method.invokeNative(Native Method)

03-29 06:59:30.471: E/AndroidRuntime(335): at java.lang.reflect.Method.invoke(Method.java:507)

03-29 06:59:30.471: E/AndroidRuntime(335): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)

03-29 06:59:30.471: E/AndroidRuntime(335): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)

03-29 06:59:30.471: E/AndroidRuntime(335): at dalvik.system.NativeStart.main(Native Method)

03-29 06:59:30.471: E/AndroidRuntime(335): Caused by: java.lang.ClassNotFoundException: org.zknine.test.MyGameActivity in loader dalvik.system.PathClassLoader[/data/app/org.zknine.test-1.apk]

03-29 06:59:30.471: E/AndroidRuntime(335): at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:240)

03-29 06:59:30.471: E/AndroidRuntime(335): at java.lang.ClassLoader.loadClass(ClassLoader.java:551)

03-29 06:59:30.471: E/AndroidRuntime(335): at java.lang.ClassLoader.loadClass(ClassLoader.java:511)

03-29 06:59:30.471: E/AndroidRuntime(335): at android.app.Instrumentation.newActivity(Instrumentation.java:1021)

03-29 06:59:30.471: E/AndroidRuntime(335): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1561)

03-29 06:59:30.471: E/AndroidRuntime(335): … 11 more

thanks everbady help me!

I think I solved it. It has something to do with the way android embeds external JARs while creating the .apk. The only thing you need to do is:
Instead of adding Unity\Editor\Data\PlaybackEngines\androidplayer\bin\classes.jar as “Add External JAR”, you have to copy that file(classes.jar) to your project folder (refresh your workspace and you should see it). Then, on your project properties, click on “Add Jar”, browse through your workspace and select it.
That’s all. It worked for me. And I also had the same problem with other external jars, so now I know it’s an android error.

Hope it helps,
Paula.

I have exactly the same problem. I’ve followed official instructions from Unity and I get ClassNotFoundException, but it occurs since I upgraded my ADT and sdk manager…

¿Has anyone succeeded in integrating Unity + Eclipse with Android 3.0 or superior?

I’m using Unity 3.4.2f and ADT 18.0.

Guys,

After further investigating the issue with eclipse-unity 3.5.2 integration I have figured out the culprit that was causing the integration to break.

And that culprit is Android ADT, in other words the Android eclipse plugin.

In the process of migrating our environment we also installed the latest version of ADT which currently is version 18.0.0, for some reason that didn’t play well with the integration workflow.

Our solution was to downgrade from ADT 18.0 to 15.0 and things started working again, we will try to incrementally upgrade to 16.0 then 17.0 to see what is the maximum version we can go up to.

At least now the integration is working even though we’re not using the latest and greatest as far as ADT is concerned.

Hope this helps.

Paul