Sep 23, 2017

Setting Android on Windows on with Unity 2017.1.1f1

My settings
OS: Windows 10
Unity Version: 2017.1.1f1
JDK Verison: Jdk-9
Android Studio: Version 2.3.3
Androi SDK:

1. Set Java Path for computer. (Computer->Properties->Advanced system settings->Environment Variables)

* System Variable
Variable Name : PATH
Variable Value : C:\Program Files\Java\jdk-9\bin

But the best practice is to set JAVA_HOME and PATH as follow.

* User Variable
Variable Name : JAVA_HOME
Variable Value : C:\Program Files\Java\jdk-9

* System Variable
Variable Name : PATH
Variable Value : %JAVA_HOME%\bin

Possible Error Solution:

2. Download Android Stuio or SDK from

3. Install it, make sure that you select tools and SDK (if you are installing Androi Studio.)

4. Then launch Android Studio and finish installation by downloading sdk.

5. From Android Studio, Install services and NDK. And make SDK udates.

6. Your sdk path : C:\Users\UserName\AppData\Local\Android\sdk

5. irst I tried installing Android SDK and an older Version of JDK into folders with only three letters in the folder name directly on the desktop. But this was not the solution.

Then I fixed it by downgrading the android sdk tool version. Obviously the most current version (SDK Tools, Revision 25.3.0 (March 2017)) causes the trouble.

This is how you do it:

    Go to your Android SDK Folder. (If you did not change the path during Android Studio installation you will find the SDK folder here: C:\Users\YourUsername\AppData\Local\Android\sdk )

    Rename the old Android sdk "Tool" folder : [Your Android SDK root]/tools -> toolsXXXX

    Download Android SDK Tools, Revision 25.2.5 (January 2017):

    Extract that to Android SDK root folder.

    In Unity go to Edit>Preferences>External Tools and check again, that the path for Android SDK points to the correct folder. (The correct path is the SDK root folder, not the tools folder which is inside the root folder!)

    Build your project.

No comments:

Post a Comment