Android build for Android TV

Hi Unity,

Is it possible to use Android build to publish to Android TV?


Yes, just be sure to enable Android TV Compatibility in Player Settings

Really? It’s that easy?
Should really be documentation or Tutorial to promote this feature.
And how to publish? Is there a simulator? etc.

Update: I found this article and there’s a simulator that can be used. Is there documentation of how to do this with Unity and the simulator?

https://www.raywenderlich.com/20747024-android-tv-getting-started

Does unity support AndroidTV’s opensource Exo Player?

Android TV apps are regular Android apps.
You publish it like regular Android app, to Google Play Store. Unity doesn’t supports simulators, if you want to test it, you need to get a real device.

I don’t think Unity uses exoplayer for media playing, nevertheless videos are supported on Android.

Would it be possible to add support for ExoPlayer.

I found a solution for AndroidTV simulator. It’s a built-in feature of Android Studio.
Here is a link to a video showing how.

Update: I exported an android APK from unity with the settings that you recommended. Ran it on an android simulator on my PC and it worked perfectly. I then tried to run it in the AndroidTV simulator and got this error:

Failure [INSTALL_FAILED_NO_MATCHING_ABIS: Failed to extract native libraries, res=-113] Install failed #31579

What Android Architectures you have selected in Player Settings? I am guessing the simulator might want X86 or X86_64

I selected X86.
Can I chose the export type from unity?

If you’re referring to apk or aab, then yes.

The export from unity is default to Arm, how can that be changed to x86