Search Unity

CommandInvocationFailure: Failed to re-package resources

Discussion in 'Editor & General Support' started by xichaelx, Sep 25, 2016.

  1. xichaelx

    xichaelx

    Joined:
    Oct 4, 2012
    Posts:
    23
    Having such a tough time figuring out how to resolve building to Android. Searched many threads, a few were close to my issue, but nothing exactly the same. I'm not sure where to go for this. Any help would be great.

    Trying to build for Gear VR. Have the latest OVR SDK in the project if that helps.


    CommandInvokationFailure: Failed to re-package resources.
    D:\Android\AndroidSDK\build-tools\23.0.1\aapt.exe package --auto-add-overlay -v -f -m -J gen -M AndroidManifest.xml -S "res" -I "D:/Android/AndroidSDK\platforms\android-24\android.jar" -F bin/resources.ap_

    stderr[
    AndroidManifest.xml:4: error: Error: No resource found that matches the given name (at 'theme' with value '@StyLe/VrActivityTheme').

    ]
    stdout[
    Configurations:
    (default)
    v14
    v21
    ldpi-v4
    hdpi-v4
    xhdpi-v4
    xxhdpi-v4
    xxxhdpi-v4

    Files:
    drawable\app_icon.png
    Src: () res\drawable\app_icon.png
    Src: (ldpi-v4) res\drawable-ldpi\app_icon.png
    Src: (hdpi-v4) res\drawable-hdpi\app_icon.png
    Src: (xhdpi-v4) res\drawable-xhdpi\app_icon.png
    Src: (xxhdpi-v4) res\drawable-xxhdpi\app_icon.png
    Src: (xxxhdpi-v4) res\drawable-xxxhdpi\app_icon.png
    values\strings.xml
    Src: () res\values\strings.xml
    values\styles.xml
    Src: () res\values\styles.xml
    Src: (v14) res\values-v14\styles.xml
    Src: (v21) res\values-v21\styles.xml
    AndroidManifest.xml
    Src: () AndroidManifest.xml

    Resource Dirs:
    Type drawable
    drawable\app_icon.png
    Src: () res\drawable\app_icon.png
    Src: (ldpi-v4) res\drawable-ldpi\app_icon.png
    Src: (hdpi-v4) res\drawable-hdpi\app_icon.png
    Src: (xhdpi-v4) res\drawable-xhdpi\app_icon.png
    Src: (xxhdpi-v4) res\drawable-xxhdpi\app_icon.png
    Src: (xxxhdpi-v4) res\drawable-xxxhdpi\app_icon.png
    Type values
    values\strings.xml
    Src: () res\values\strings.xml
    values\styles.xml
    Src: () res\values\styles.xml
    Src: (v14) res\values-v14\styles.xml
    Src: (v21) res\values-v21\styles.xml
    Including resources from package: D:\Android\AndroidSDK\platforms\android-24\android.jar
    applyFileOverlay for drawable
    applyFileOverlay for layout
    applyFileOverlay for anim
    applyFileOverlay for animator
    applyFileOverlay for interpolator
    applyFileOverlay for transition
    applyFileOverlay for xml
    applyFileOverlay for raw
    applyFileOverlay for color
    applyFileOverlay for menu
    applyFileOverlay for mipmap
    Processing image: res\drawable\app_icon.png
    Processing image: res\drawable-ldpi\app_icon.png
    Processing image: res\drawable-hdpi\app_icon.png
    Processing image: res\drawable-xhdpi\app_icon.png
    (processed image res\drawable-ldpi\app_icon.png: 57% size of source)
    Processing image: res\drawable-xxhdpi\app_icon.png
    (processed image res\drawable\app_icon.png: 58% size of source)
    Processing image: res\drawable-xxxhdpi\app_icon.png
    (processed image res\drawable-hdpi\app_icon.png: 58% size of source)
    (processed image res\drawable-xhdpi\app_icon.png: 58% size of source)
    (processed image res\drawable-xxhdpi\app_icon.png: 59% size of source)
    (processed image res\drawable-xxxhdpi\app_icon.png: 54% size of source)
    (new resource id app_icon from drawable\app_icon.png #generated)
    (new resource id app_icon from ldpi-v4\drawable\app_icon.png #generated)
    (new resource id app_icon from hdpi-v4\drawable\app_icon.png #generated)
    (new resource id app_icon from xhdpi-v4\drawable\app_icon.png #generated)
    (new resource id app_icon from xxhdpi-v4\drawable\app_icon.png #generated)
    (new resource id app_icon from xxxhdpi-v4\drawable\app_icon.png #generated)
    ]
    UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
    UnityEditor.Android.PostProcessor.Tasks.TasksCommon.Exec (System.String command, System.String args, System.String workingdir, System.String errorMsg, Int32 retiresOnFailure)

    UnityEditor.HostView:OnGUI()
     
  2. mikael_juhala

    mikael_juhala

    Joined:
    Mar 9, 2015
    Posts:
    247
    Should the value have "Style" instead of "StyLe"?
     
  3. xichaelx

    xichaelx

    Joined:
    Oct 4, 2012
    Posts:
    23
    That's a good catch, but I switched Android SDKs, trying different ones to see if it fixes it, and it changed to "style" but to no avail. Still getting the same general error on the build.
     
  4. RichyK

    RichyK

    Joined:
    Feb 8, 2015
    Posts:
    57
    I'm getting this too, did you resolve this?

    Richard