Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Unity 3d app on Google TV / Google TV Emulator

Discussion in 'Android' started by sameer-mirza, Jan 24, 2012.

  1. sameer-mirza

    sameer-mirza

    Joined:
    Nov 14, 2011
    Posts:
    36
    Hi,

    I'm trying to run a Unity built android app on Google TV. I've tried various things without much luck yet. Directly pushing the .apk built by unity on to the Google TV emulator doesn't work. I've also tried getting the code from unity's Temp/StagingArea folder and bringing that to Eclipse (in Ubuntu) and running it with the emulator (following http://unity3d.com/support/documentation/Manual/Android-Integrating Unity With Eclipse.html) but this doesn't work either. The guide works if you run the app on an AVD other than the Google TV emulator.

    I've tried different settings from Unity (even different versions of Unity, namely Unity 3.4.1 and Unity 3.5).

    With Unity 3.5, I've done a test with the following settings
    Android SDK version = 3.0
    Device Filter = x86 and Armv6 with VFP (tried both)
    Graphics Level = OpenGL ES 2.0
    Optimization = .NET 2.0 Subset
    Stripping Level = Disabled
    The scene simply has a camera and a sphere rendered in front of it

    Both report the following error in the logcat
    01-24 11:09:51.163: E/AndroidRuntime(1694): FATAL EXCEPTION: main
    01-24 11:09:51.163: E/AndroidRuntime(1694): java.lang.UnsatisfiedLinkError: Couldn't load mono: findLibrary returned null
    01-24 11:09:51.163: E/AndroidRuntime(1694): at java.lang.Runtime.loadLibrary(Runtime.java:425)
    01-24 11:09:51.163: E/AndroidRuntime(1694): at java.lang.System.loadLibrary(System.java:554)
    01-24 11:09:51.163: E/AndroidRuntime(1694): at com.unity3d.player.UnityPlayer.<init>(Unknown Source)
    01-24 11:09:51.163: E/AndroidRuntime(1694): at com.unity3d.player.UnityPlayerActivity.onCreate(Unknown Source)
    01-24 11:09:51.163: E/AndroidRuntime(1694): at com.BinexSolutions.gtvTest.SphereFromunity35Activity.onCreate(SphereFromunity35Activity.java:11)
    01-24 11:09:51.163: E/AndroidRuntime(1694): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1048)
    01-24 11:09:51.163: E/AndroidRuntime(1694): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1732)
    01-24 11:09:51.163: E/AndroidRuntime(1694): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1784)
    01-24 11:09:51.163: E/AndroidRuntime(1694): at android.app.ActivityThread.access$1500(ActivityThread.java:124)
    01-24 11:09:51.163: E/AndroidRuntime(1694): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1016)
    01-24 11:09:51.163: E/AndroidRuntime(1694): at android.os.Handler.dispatchMessage(Handler.java:99)
    01-24 11:09:51.163: E/AndroidRuntime(1694): at android.os.Looper.loop(Looper.java:132)
    01-24 11:09:51.163: E/AndroidRuntime(1694): at android.app.ActivityThread.main(ActivityThread.java:4083)
    01-24 11:09:51.163: E/AndroidRuntime(1694): at java.lang.reflect.Method.invokeNative(Native Method)
    01-24 11:09:51.163: E/AndroidRuntime(1694): at java.lang.reflect.Method.invoke(Method.java:491)
    01-24 11:09:51.163: E/AndroidRuntime(1694): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:841)
    01-24 11:09:51.163: E/AndroidRuntime(1694): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:599)
    01-24 11:09:51.163: E/AndroidRuntime(1694): at dalvik.system.NativeStart.main(Native Method)

    Similar results for Unity 3.4.1. The Google tv emulator fails to run the app but other android emulators succeed.

    Unity 3.4.1 - Emulator build - Android SDK 2.3.3
    ==============================================
    Google TV Emulator = failed (failed to load mono: findlibrary returned null)
    Android 2.3.3 emulator = works with (MinSDK = 10 = android 2.3.3)


    Unity 3.4.1 - Arm v 6 build - Android SDK 2.3.3
    ===============================================
    Google TV Emulator = failed (no debug/error msg on console)
    Android 2.3.3 emulator = works with MinSDK = 10 = android 2.3.3)


    Any clues about this scenario ?

    - Sameer
     
  2. Antares19

    Antares19

    Joined:
    Mar 1, 2012
    Posts:
    9
    Hi! Any updates here? What was the outcome?