Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Failed to re-package resources (Android build)

Discussion in 'Android' started by N00MKRAD, Jan 28, 2015.

  1. N00MKRAD

    N00MKRAD

    Joined:
    Dec 31, 2013
    Posts:
    210
    Everytime I try to build my Android APK I get this error:

    Error building Player: CommandInvokationFailure: Failed to re-package resources. See the Console for details. D:\android-sdk_r22.0.5-windows\android-sdk-windows\build-tools\21.1.2\aapt.exe package --auto-add-overlay -v -f -m -J gen -M AndroidManifest.xml -S "res" -I "D:/android-sdk_r22.0.5-windows/android-sdk-windows/platforms/android-21\android.jar" -F bin/resources.ap_ --extra-packages com.facebook.android -S

    I already tried to use another SDK version (someone said that it won't work in 21.01)

    I googled and searche in Unity Answers, but I can't find something to fix it.

    Can you help me? Thanks in advance.
     
    Last edited: Jan 28, 2015
  2. pws-devs

    pws-devs

    Joined:
    Feb 2, 2015
    Posts:
    63
    I have encountered a similar problem too. I suspect it had something to do with the new changes in the build-tools of the Android SDK, regarding the "Getting aapt to ignore XML files that fail to compile". What I did was to roll back my build-tools revision to a revision before 19.1.0 and it did work.
     
  3. N00MKRAD

    N00MKRAD

    Joined:
    Dec 31, 2013
    Posts:
    210
    The problem is that I need v21 or newer, and in these versions I get the error.
     
    Last edited: Feb 9, 2015
  4. inamabbas

    inamabbas

    Joined:
    Feb 5, 2015
    Posts:
    1
    I have the same problem.. did you find any solution?
     
  5. N00MKRAD

    N00MKRAD

    Joined:
    Dec 31, 2013
    Posts:
    210
    Nope :(