Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Integrating Unity and Eclipse

Discussion in 'Android' started by Linusmartensson, Dec 22, 2010.

  1. tgraupmann

    tgraupmann

    Joined:
    Sep 14, 2007
    Posts:
    828
  2. citycrusher

    citycrusher

    Joined:
    Sep 26, 2010
    Posts:
    41
    thanks for those video links i'll check those out! i've got lots to learn here.

    for anyone struggling with similar error as my last post i found it was caused by trying to launch to an armv6 AVD when my game was armv7.... that plus an incorrect GPU setting.... doh!

    finally worked it out anyway. very happy moment to see my game run in emulator finally :D
     
  3. morty346

    morty346

    Joined:
    Dec 16, 2010
    Posts:
    18
  4. morty346

    morty346

    Joined:
    Dec 16, 2010
    Posts:
    18
    the issue was that android requires a meta-data to be added to the xml manifest to tell unity to pass events to dalvik

    see UnityPlayerNativeActivity http://docs.unity3d.com/Documentation/Manual/PluginsForAndroid.html
     
  5. Ashiq

    Ashiq

    Joined:
    Feb 6, 2014
    Posts:
    1
    Is there any way to import unity project as android live wallpaper. I don't want want to use any plug-ins like LWP4Unity, Uni2LwP or unity2eclipse.
     
  6. Ethan_Hunt

    Ethan_Hunt

    Joined:
    Apr 4, 2014
    Posts:
    3
    I am new to unity using version4.3.4. I Made a small project in unity and exported it as an android project. Than made a test project and included my unity android project as a library in this testproject. It is getting compiled but when I try to run it on my device(Nexus 4), it crashes on launch with following error:-

    04-17 17:03:01.763: E/AndroidRuntime(28252): Process: com.example.testapp, PID: 28252
    04-17 17:03:01.763: E/AndroidRuntime(28252): java.lang.UnsatisfiedLinkError: Couldn't load libunity.so from loader dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.example.testapp-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.example.testapp-1, /vendor/lib, /system/lib]]]: findLibrary returned null
    04-17 17:03:01.763: E/AndroidRuntime(28252): at java.lang.Runtime.loadLibrary(Runtime.java:358)
    04-17 17:03:01.763: E/AndroidRuntime(28252): at java.lang.System.loadLibrary(System.java:526)
    04-17 17:03:01.763: E/AndroidRuntime(28252): at com.example.testapp.MainActivity.<clinit>(MainActivity.java:16)
    04-17 17:03:01.763: E/AndroidRuntime(28252): at java.lang.Class.newInstanceImpl(Native Method)
    04-17 17:03:01.763: E/AndroidRuntime(28252): at java.lang.Class.newInstance(Class.java:1208)
    04-17 17:03:01.763: E/AndroidRuntime(28252): at android.app.Instrumentation.newActivity(Instrumentation.java:1061)
    04-17 17:03:01.763: E/AndroidRuntime(28252): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2112)
    04-17 17:03:01.763: E/AndroidRuntime(28252): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245)
    04-17 17:03:01.763: E/AndroidRuntime(28252): at android.app.ActivityThread.access$800(ActivityThread.java:135)
    04-17 17:03:01.763: E/AndroidRuntime(28252): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
    04-17 17:03:01.763: E/AndroidRuntime(28252): at android.os.Handler.dispatchMessage(Handler.java:102)
    04-17 17:03:01.763: E/AndroidRuntime(28252): at android.os.Looper.loop(Looper.java:136)
    04-17 17:03:01.763: E/AndroidRuntime(28252): at android.app.ActivityThread.main(ActivityThread.java:5017)
    04-17 17:03:01.763: E/AndroidRuntime(28252): at java.lang.reflect.Method.invokeNative(Native Method)
    04-17 17:03:01.763: E/AndroidRuntime(28252): at java.lang.reflect.Method.invoke(Method.java:515)
    04-17 17:03:01.763: E/AndroidRuntime(28252): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
    04-17 17:03:01.763: E/AndroidRuntime(28252): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
    04-17 17:03:01.763: E/AndroidRuntime(28252): at dalvik.system.NativeStart.main(Native Method)


    Please help me solving it. Thanks in advance.
     
  7. schmosef

    schmosef

    Joined:
    Mar 6, 2012
    Posts:
    852
    Thanks so much for this.
     
  8. liortal

    liortal

    Joined:
    Oct 17, 2012
    Posts:
    3,562
    Is this process is still needed? The post is originally from times where Android support was in beta. What is today's status regarding this integration ?
     
  9. Dustin-Horne

    Dustin-Horne

    Joined:
    Apr 4, 2013
    Posts:
    4,568
    Yeah this post got totally Necro'd. To be honest... I'm not sure which IDE Unity recommends, but Google officially recommends Android Studio by JetBrains and it's a pretty slick IDE. It will make you cry if you ever have to go back to Eclipse again.
     
  10. ssssss2e2e2e

    ssssss2e2e2e

    Joined:
    Mar 9, 2015
    Posts:
    1
  11. 1arker

    1arker

    Joined:
    Jan 8, 2016
    Posts:
    1
    hi every1 lately i bought an usa phone on ebay and the phone doesnt support my language in menus but i can write and read perfectly i just want to translate from en to my language in menu and ui interface i was told that i can by adding anew folder in res/value/string.xml but i dont know where to find that can anyone help?? i will be greatfull
     
  12. kalathos16

    kalathos16

    Joined:
    Aug 17, 2016
    Posts:
    5