- Home /
How can I get project for Eclipse from Unity3D?
In Build Settings I pick "Google Android Project". Then I open eclipse and create Android project from existing code. I launch it and get exception. LogCat says:
01-31 16:37:41.482: E/AndroidRuntime(519): FATAL EXCEPTION: main
01-31 16:37:41.482: E/AndroidRuntime(519): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.unity3d.JavaPlugin/com.unity3d.JavaPlugin.UnityPlayerNativeActivity}: java.lang.IllegalArgumentException:
Unable to find native library: main
01-31 16:37:41.482: E/AndroidRuntime(519): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1647)
01-31 16:37:41.482: E/AndroidRuntime(519): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663) 01-31 16:37:41.482: E/AndroidRuntime(519): at android.app.ActivityThread.access$1500(ActivityThread.java:117)
01-31 16:37:41.482: E/AndroidRuntime(519): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
01-31 16:37:41.482: E/AndroidRuntime(519): at android.os.Handler.dispatchMessage(Handler.java:99)
01-31 16:37:41.482: E/AndroidRuntime(519): at android.os.Looper.loop(Looper.java:123)
01-31 16:37:41.482: E/AndroidRuntime(519): at android.app.ActivityThread.main(ActivityThread.java:3683)
01-31 16:37:41.482: E/AndroidRuntime(519): at java.lang.reflect.Method.invokeNative(Native Method)
01-31 16:37:41.482: E/AndroidRuntime(519): at java.lang.reflect.Method.invoke(Method.java:507)
01-31 16:37:41.482: E/AndroidRuntime(519): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
01-31 16:37:41.482: E/AndroidRuntime(519): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
01-31 16:37:41.482: E/AndroidRuntime(519): at dalvik.system.NativeStart.main(Native Method)
01-31 16:37:41.482: E/AndroidRuntime(519): Caused by: java.lang.IllegalArgumentException: Unable to find native library: main
01-31 16:37:41.482: E/AndroidRuntime(519): at android.app.NativeActivity.onCreate(NativeActivity.java:187)
01-31 16:37:41.482: E/AndroidRuntime(519): at com.unity3d.JavaPlugin.UnityPlayerNativeActivity.onCreate(UnityPlayerNativeActivity.java:22)
01-31 16:37:41.482: E/AndroidRuntime(519): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
01-31 16:37:41.482: E/AndroidRuntime(519): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1611)
=======
What did I do wrong?
Answer by Serkoz · Feb 03, 2014 at 11:15 AM
Okey. I have decided this problem for me. I can use this project (When I pick "Google Android Project") in google android studio. There it works fine
Your answer
Follow this Question
Related Questions
Unity2Eclipse plugin, unity JARs and Split Application Binary (OBB) issue. 0 Answers
how to integrate unity3d in eclipse IDE? 1 Answer
problem accessing android jar in unity 2 Answers
Unity freeze on finished exporting eclipse project 1 Answer
Incorporating Unity textures, models, and terrain into Eclipse 0 Answers