Search Unity

Failed to re-package resources when building android game

Discussion in 'Getting Started' started by julianqwerty, Jun 27, 2016.

  1. julianqwerty

    julianqwerty

    Joined:
    Jun 27, 2016
    Posts:
    2
    hi,


    i am searching for a solution for a very long time now. and can't find it anywhere. i already reainstalled all the sdk and java stuff, but it just won't work.

    - i got java
    - i got jdk
    - i got sdk
    - and the correct path to it

    i would realy appreciate it if someone could help me.

    console:
    Error building Player: CommandInvokationFailure: Failed to re-package resources. See the Console for details.
    C:\Program Files (x86)\Android\android-sdk\build-tools\24.0.0\aapt.exe package --auto-add-overlay -v -f -m -J gen -M AndroidManifest.xml -S "res" -I "C:/Program Files (x86)/Android/android-sdk\platforms\android-24\android.jar" -F bin/resources.ap_

    stderr[

    ]
    stdout[

    ]
     
  2. xjjon

    xjjon

    Joined:
    Apr 15, 2016
    Posts:
    167
    I posted about this problem yesterday:

    http://forum.unity3d.com/threads/android-build-tools.413662/

    If you delete build tools version 24, and install 23 it will work again. (Install this in Android SDK Manager)

    C:\Program Files (x86)\Android\android-sdk\build-tools\

    Just delete the entire 24.0.0 folder. It doesn't seem to work with current version of Unity.
     
  3. bob539

    bob539

    Joined:
    Feb 19, 2019
    Posts:
    6