Search Unity

[Unity 5] Error building Player, Android

Discussion in 'Editor & General Support' started by luqmanrasa, Jun 19, 2015.

  1. luqmanrasa

    luqmanrasa

    Joined:
    Jun 18, 2015
    Posts:
    1
    Hi, I'm very new here. Just wanted to share a solution that I found when building to an Android platform.

    I know this is a common issue and has been resolved many times. But unfortunately it won't work for me.

    Popular answer :
    Copy zipalign.exe from
    android_sdk folder/build-tools/<version>/
    to
    android_sdk folder/tools/

    But I'm on a Mac and that method give me no solution.

    Here's my machine operating system : Mac OSX Yosemite (10.10)

    Let's take a look at the problem :


    This message appeared when I tried to build to Android platform.
    I have already copied zipalign and paste it inside tools folder. Nothing happened.

    Then I take a look at the message, carefully :


    Suppose there's a file appt inside the tools folder.

    So what I have done :
    1. Go inside your android sdk folder
    2. Go to build-tools folder
    3. Go to your version folder (eg: 22.0.1)
    4. Inside the folder you'll find aapt and zipalign. Copy those files. (DONT MOVE THEM)
    5. Go back to your sdk root folder
    6. Go to tools folder
    7. Paste the files inside the folder.
    8. You are done. Now try build your game :)
    That's all.
     
    fffMalzbier likes this.