Why is "build and run" greyed out when I attempt to build to Android?

When I try and build to my Android device the “build and run” button is greyed out. Like this:

107763-screenshot-2017-12-21-133645.png

Why is this?

I’ve been working on a Google VR project and am a total newbie on Unity. I’ve read through various forums but I can’t find anyone who has this specific problem.

Any help would be greatly appreciated!

Thanks.

Pressing the “Switch Platform” button made the “Build And Run” button clickable for me.

144311-switch-platform-button.png

I would guess it could be one of two things (at least):

• You are not on a Unity license that permits mobile compiling


• You didn’t install this component during setup (Android is optional during install, and can be left unticked)


Sounds like you have not chosen to install the SDK etc.?
If you have installed the Android SDK separately, make sure it is listed here:

Menu Bar > Edit > Preferences… > External Tools

107776-android-sdk.png

change the build system in the build settings from gradleto internal119432-untitled-1.png

Hi @danielrobertpoulton. I was dealing with the problem for a long time. I searched too much about how to fix it but thank god I finally fixed it. The solution is in the link. Have a nice day.

,Hi @danielrobertpoulton . I was dealing with this problem for a long time but finally I fixed it. I made a video about the solution. Follow the link and try this way. Have a nice day.

Well unchecking the Export Project checkbox worked for me.

On Unity 2019.
I managed to fix it after installing the android sdk via the hub, and creating a new android project.

Eli

I Turned color space from Linear to gamma in Player Setting and It Worked

It took 35 minutes to perform some kind of conversion but it worked, thanks!