Search Issue Tracker

Fixed in 2017.1.0f3

Fixed in 5.4.X, 5.5.X, 5.6.X



Found in



Issue ID




Android Build fails when the latest Android SDK Tools 25.3.1 version is used



How to reproduce:
1. Update Android SDK Tools to 25.3.1
- In Mac open Android Studio -> Check for updates and update Android Studio version (might be not necessary)
- In Android Studio -> Preferences -> Appearance & Behavior -> System Settings -> Android SDK -> SDK Tools
2. Create a new Unity project
3. Build and run on Android device
Result: Build fails "CommandInvokationFailure: Unable to list target platforms. Please make sure the android sdk path is correct. See the Console for more details. ..."

Reproducible: 5.5.2p2, 5.6.0b11, 2017.1.0a3

Note: I haven't been able to reproduce this issue on Windows machine. As after update via Android Studio, SDK Manager still doesn't see SDK Tools 25.3.1 version and uses 25.2.5

Workaround for the customers.

1) just open
2) scroll down to the bottom of that page
3) go to downloads
4) scroll down to the bottom of that page
5) find Windows "" download and unzip it
5) find MacOSX "" download and unzip it.
6) In the SDK path replace the tools folder.

Unity versions: 5.4.5p2, 5.5.3p3, 5.6.0p3, 2017.1.0b3
SDK Tools have to be updated to 26.x.x

Comments (165)

  1. 5a1a2871bd74618e6c9479165110afac?d=mm


    Feb 22, 2018 22:34

    Response below worked for me:

    FEB 09, 2018 11:42

  2. C80556b8ac58f4fac149395a0734f73c?d=mm


    Feb 22, 2018 10:17

    I have same Problem with SDK 25.3.1. or 26.1.1. PLEASE UPDATE THIS PROBLEM !!!!

  3. D1738665e6a05b68159d278c89807267?d=mm


    Feb 20, 2018 16:36

    it's working with Tools 26.1.1 version on Unity 2017.3.p1

  4. 189f1c5c2bba307099a9ae4158805db4?d=mm


    Feb 20, 2018 01:38

    Same problem on 2017.3.1p1

  5. 2b311624727c0ba9298d0ebefc7f49fd?d=mm


    Feb 15, 2018 05:54

    This is not fixed as of latest Unity. I will try the plethora of solutions offered, been through half of them already...
    The followed the Unity Android setup instructions exactly and this happens.

  6. D019f6bfae9710af100f3a9f025bcd0d?d=mm


    Feb 14, 2018 09:47

    This is crazy! I'm on latex Unity 2017.3.0f3 and this issue exists!!! Could someone find a workaround?

  7. B18ab03b56b23dc494debe05e4bb1aca?d=mm


    Feb 12, 2018 17:26

    @ASHGENEVIE I tried using the 26.0.0 Build Tools and then the 26.0.3 version. But it doesn't seem to make any difference. I don't have the NDK installed at all though. I never did and it worked fine before. So, based on this error I'm still getting, do I need to install the NDK (Not sure since I'm using a Mac)? I have the JDK version 1.8_161, as you suggested, and I replaced the tools folder with the 25.2.5 version that was supposed to be a fix. But still the same error:
    CommandInvokationFailure: Failed to re-package resources.
    /Users/milliemilagne/Game Dev/Android/sdk/build-tools/26.0.3/aapt package --auto-add-overlay -v -f -m -J "gen" -M "AndroidManifest.xml" -S "res" -I "/Users/milliemilagne/Game Dev/Android/sdk/platforms/android-26/android.jar" -F bin/resources.ap_ --extra-packages

  8. Fdbeb1f205c0c0b6c84cdd584425e0d0?d=mm


    Feb 10, 2018 13:54

    I wish I could edit comments on here...

    Extra step, after following the steps below, if you are still having problems:

    Go back to the SDK Manager, go to SDK tools tab, scroll down, and make sure Android SDK Platform tools is checked. If not, check it, click apply, and run the installation.


  9. Fdbeb1f205c0c0b6c84cdd584425e0d0?d=mm


    Feb 09, 2018 12:09

    An added note, you also need to make sure your Build Tools are the 26.0.0 version. To do this, go to the SDK Manager in Android Studio. Go to Appearance & Behavior > System Settings > Android SDK. Then, click the "SDK Tools" tab. Check the "Show Package Details" selection at the bottom right of the window. Under Android SDK Build Tools, deselect any current checked version and check the 26.0.0 version. Click Apply, continue the installation. Once done, close Unity, open it again, and you shouldn't receive the build error anymore.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.