Search code examples
unity-game-enginevisual-studio-mac

Add android target to visual studio for Mac


I'm building over a non from scratch project, that a previous developer created in my office. In a previous version of Unity - Visual Studio for Mac I generated some build for iOS, but now, with the newest version, I get this configuration:

enter image description here Also, the configuration for Android is disabled. enter image description here

How I can add Android as target for my project to generate an apk file?

UPDATE 1 VS Configuration. enter image description here

UPDATE 2 / BUILD CONFING enter image description here enter image description here


Solution

  • Please refer to the following link to setup unity to make Android APK:

    https://docs.unity3d.com/Manual/android-sdksetup.html

    You will need to download: the latest version of java, and the android sdk. You will need to set the unity path to the sdk You will need to download and set up the android ndk.

    Sounds like a lot of work but its really a lot of waiting. the Android SDK can take some time depending on which versions you wish to support and how far back you go.

    Once you have followed the guide above you will be able to change your project to android in the project settings menu.

    Good luck!

    For mac users with unity looking to set up android:

    Instructions for Mac

    enter image description here

    you should be able to select android here and then click switch platform...