Unity3D Error building Player: CommandInvokationFailure: Failed to re-package resources. See the Console for details.

1

Several days ago I came across this compilation error with an own Android SDK that I created. It works on version 5 of Unity, but not on 4.x

I've already seen many alternatives about updating the SDK Manager, etc.

After several tests, I came to the conclusion that it does not load the .aar file, it is something from version 4.x of itself.

I saw some references on how to make Unity read the jar classes, but the truth is nothing concrete.

Does anyone have any idea how I can fix it to read the java library?

Thank you very much, I am attaching the error.

Greetings!

'Error building Player: CommandInvokationFailure: Failed to re-package resources. See the Console for details.
C:\Users\ppalma\AppData\Local\Android\sdk\build-tools.0.0-preview\aapt.exe package --auto-add-overlay -v -f -m -J gen -M AndroidManifest.xml -S "res" -I "C:/Users/ppalma/AppData/Local/Android/sdk/platforms/android-23\android.jar" -F bin/resources.ap_

stderr[
AndroidManifest.xml:7: error: Error: No resource found that matches the given name (at 'theme' with value '@style/XplayTheme').'
    
asked by Pablo Palma 30.03.2016 в 16:39
source

1 answer

0

The .aar file is a file that includes the resources, files within the folder /res of your project such as drawables, layouts, etc.

The error message refers to a problem when packaging them and this is the problem:

  

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

The problem is that your project is referencing a style XplayTheme which does not exist , you can verify it in the file:

/res/values/styles.xml

You must have something similar to:

<resources>

    <style name="XplayTheme" parent="Theme.AppCompat.Light.DarkActionBar">
     ...
     ...
     ...
    </style>

</resources>
    
answered by 07.10.2016 в 17:48