Android: Failed to repackage resources error

I’ve been trying to build a project with an android aar plugin and keep getting this error. I tried removing android build tools 25.0.2 as it was suggested in other answers, but the error popped up when using build tool 25.0.0 as well. Can anyone help?

CommandInvokationFailure: Failed to re-package resources.
C:\Users\DigitalEgypt\AppData\Local\Android\sdk\build-tools\25.0.0\aapt.exe package --auto-add-overlay -v -f -m -J “gen” -M “AndroidManifest.xml” -S “res” -I “C:/Users/DigitalEgypt/AppData/Local/Android/sdk\platforms\android-25\android.jar” -F bin/resources.ap_ --extra-packages com.digitaleg.de_festivalcity -S “E:\Unity\Active OrianaB Textured Model ViewerLatest\Active OrianaB Textured Model Viewer\Temp\StagingArea\android-libraries\de_festivalcity-release\res”

stderr[
E:\Unity\Active OrianaB Textured Model ViewerLatest\Active OrianaB Textured Model Viewer\Temp\StagingArea\android-libraries\de_festivalcity-release\res\values\values.xml:79: error: Error retrieving parent for item: No resource found that matches the given name ‘Theme.AppCompat.NoActionBar’.

E:\Unity\Active OrianaB Textured Model ViewerLatest\Active OrianaB Textured Model Viewer\Temp\StagingArea\android-libraries\de_festivalcity-release\res\values\values.xml:83: error: Error: No resource found that matches the given name: attr ‘colorAccent’.

E:\Unity\Active OrianaB Textured Model ViewerLatest\Active OrianaB Textured Model Viewer\Temp\StagingArea\android-libraries\de_festivalcity-release\res\values\values.xml:81: error: Error: No resource found that matches the given name: attr ‘colorPrimary’.

E:\Unity\Active OrianaB Textured Model ViewerLatest\Active OrianaB Textured Model Viewer\Temp\StagingArea\android-libraries\de_festivalcity-release\res\values\values.xml:82: error: Error: No resource found that matches the given name: attr ‘colorPrimaryDark’.

E:\Unity\Active OrianaB Textured Model ViewerLatest\Active OrianaB Textured Model Viewer\Temp\StagingArea\android-libraries\de_festivalcity-release\res\values\values.xml:87: error: Error: No resource found that matches the given name: attr ‘windowActionBar’.

E:\Unity\Active OrianaB Textured Model ViewerLatest\Active OrianaB Textured Model Viewer\Temp\StagingArea\android-libraries\de_festivalcity-release\res\values\values.xml:86: error: Error: No resource found that matches the given name: attr ‘windowNoTitle’.

]
stdout[
Configurations:
(default)
v11
v14
small-v4
normal-v4
large-v4
xlarge-v4
port
land
ldpi-v4
mdpi-v4
mdpi-v11
hdpi-v4
hdpi-v11
xhdpi-v4
xhdpi-v11
xxhdpi-v4
xxhdpi-v11
xxxhdpi-v4
xxxhdpi-v11
anydpi-v21
w820dp-v13

Files:
anim\de_activity_bottom_in.xml
Src: () E:\Unity\Active OrianaB Textured Model ViewerLatest\Active OrianaB Textured Model Viewer\Temp\StagingArea\android-libraries\de_festivalcity-release\res\anim\de_activity_bottom_in.xml
anim\de_activity_fake_animation.xml
Src: () E:\Unity\Active OrianaB Textured Model ViewerLatest\Active OrianaB Textured Model Viewer\Temp\StagingArea\android-libraries\de_festivalcity-release\res\anim\de_activity_fake_animation.xml
anim\de_activity_top_out.xml
Src: () E:\Unity\Active OrianaB Textured Model ViewerLatest\Active OrianaB Textured Model Viewer\Temp\StagingArea\android-libraries\de_festivalcity-release\res\anim\de_activity_top_out.xml
anim\de_slide_in_bottom.xml
Src: () E:\Unity\Active OrianaB Textured Model ViewerLatest\Active OrianaB Textured Model Viewer\Temp\StagingArea\android-libraries\de_festivalcity-release\res\anim\de_slide_in_bottom.xml
anim\de_slide_in_top.xml
Src: () E:\Unity\Active OrianaB Textured Model ViewerLatest\Active OrianaB Textured Model Viewer\Temp\StagingArea\android-libraries\de_festivalcity-release\res\anim\de_slide_in_top.xml
anim\de_slide_out_bottom.xml
Src: () E:\Unity\Active OrianaB Textured Model ViewerLatest\Active OrianaB Textured Model Viewer\Temp\StagingArea\android-libraries\de_festivalcity-release\res\anim\de_slide_out_bottom.xml
anim\de_slide_out_top.xml
Src: () E:\Unity\Active OrianaB Textured Model ViewerLatest\Active OrianaB Textured Model Viewer\Temp\StagingArea\android-libraries\de_festivalcity-release\res\anim\de_slide_out_top.xml
anim\menu_fade_in.xml
Src: () E:\Unity\Active OrianaB Textured Model ViewerLatest\Active OrianaB Textured Model Viewer\Temp\StagingArea\android-libraries\de_festivalcity-release\res\anim\menu_fade_in.xml
anim\my_fade_in.xml
Src: () E:\Unity\Active OrianaB Textured Model ViewerLatest\Active OrianaB Textured Model Viewer\Temp\StagingArea\android-libraries\de_festivalcity-release\res\anim\my_fade_in.xml
anim\my_layout_animation.xml
Src: () E:\Unity\Active OrianaB Textured Model ViewerLatest\Active OrianaB Textured Model Viewer\Temp\StagingArea\android-libraries\de_festivalcity-release\res\anim\my_layout_animation.xml
anim\rotate_text.xml
Src: () E:\Unity\Active OrianaB Textured Model ViewerLatest\Active OrianaB Textured Model Viewer\Temp\StagingArea\android-libraries\de_festivalcity-release\res\anim\rotate_text.xml
anim\slide_left_in.xml
Src: () E:\Unity\Active OrianaB Textured Model ViewerLatest\Active OrianaB Textured Model Viewer\Temp\StagingArea\android-libraries\de_festivalcity-release\res\anim\slide_left_in.xml
anim\slide_left_out.xml
Src: () E:\Unity\Active OrianaB Textured Model ViewerLatest\Active OrianaB Textured Model Viewer\Temp\StagingArea\android-libraries\de_festivalcity-release\res\anim\slide_left_out.xml
anim\slide_right_in.xml
Src: () E:\Unity\Active OrianaB Textured Model ViewerLatest\Active OrianaB Textured Model Viewer\Temp\StagingArea\android-libraries\de_festivalcity-release\res\anim\slide_right_in.xml
anim ranslate_text.xml
Src: () E:\Unity\Active OrianaB Textured Model ViewerLatest\Active OrianaB Textured Model Viewer\Temp\StagingArea\android-libraries\de_festivalcity-release\res\anim ranslate_text.xml
animator\de_slide_in_left.xml
Src: () E:\Unity\Active OrianaB Textured Model ViewerLatest\Active OrianaB Textured Model Viewer\Temp\StagingArea\android-libraries\de_festivalcity-release\res\animator\de_slide_in_left.xml
animator\de_slide_in_right.xml
Src: () E:\Unity\Active OrianaB Textured Model ViewerLatest\Active OrianaB Textured Model Viewer\Temp\StagingArea\android-libraries\de_festivalcity-release\res\animator\de_slide_in_right.xml
animator\de_slide_out_left.xml
Src: () E:\Unity\Active OrianaB Textured Model ViewerLatest\Active OrianaB Textured Model Viewer\Temp\StagingArea\android-libraries\de_festivalcity-release\res\animator\de_slide_out_left.xml
animator\de_slide_out_right.xml
Src: () E:\Unity\Active OrianaB Textured Model ViewerLatest\Active OrianaB Textured Model Viewer\Temp\StagingArea\android-libraries\de_festivalcity-release\res\animator\de_slide_out_right.xml
drawable\aboutapp2.jpg
Src: () E:\Unity\Active OrianaB Textured Model ViewerLatest\Active OrianaB Textured Model Viewer\Temp\StagingArea\android-libraries\de_festivalcity-release\res\drawable\aboutapp2.jpg
drawable\aboutcfc.jpg
Src: () E:\Unity\Active OrianaB Textured Model ViewerLatest\Active OrianaB Textured Model Viewer\Temp\StagingArea\android-libraries\de_festivalcity-release\res\drawable\aboutcfc.jpg
drawable\aboutfuttaim.jpg
Src: () E:\Unity\Active OrianaB Textured Model ViewerLatest\Active OrianaB Textured Model Viewer\Temp\StagingArea\android-libraries\de_festivalcity-release\res\drawable\aboutfuttaim.jpg
drawable\ais.jpg
Src: () E:\Unity\Active OrianaB Textured Model ViewerLatest\Active OrianaB Textured Model Viewer\Temp\StagingArea\android-libraries\de_festivalcity-release\res\drawable\ais.jpg
drawable\appicon.png
Src: () E:\Unity\Active OrianaB Textured Model ViewerLatest\Active OrianaB Textured Model Viewer\Temp\StagingArea\android-libraries\de_festivalcity-release\res\drawable\appicon.png
Src: (xxhdpi-v4) E:\Unity\Active OrianaB Textured Model ViewerLatest\Active OrianaB Textured Model Viewer\Temp\StagingArea\android-libraries\de_festivalcity-release\res\drawable-xxhdpi-v4\appicon.png
drawable\arrow_down.xml
Src: () E:\Unity\Active OrianaB Textured Model ViewerLatest\Active OrianaB Textured Model Viewer\Temp\StagingArea\android-libraries\de_festivalcity-release\res\drawable\arrow_down.xml
drawable\arrow_down_blue.xml
Src: () E:\Unity\Active OrianaB Textured Model ViewerLatest\Active OrianaB Textured Model Viewer\Temp\StagingArea\android-libraries\de_festivalcity-release\res\drawable\arrow_down_blue.xml
drawable\automotive.jpg
Src: () E:\Unity\Active OrianaB Textured Model ViewerLatest\Active OrianaB Textured Model Viewer\Temp\StagingArea\android-libraries\de_festivalcity-release\res\drawable\automotive.jpg
drawable\awards.jpg
Src: () E:\Unity\Active OrianaB Textured Model ViewerLatest\Active OrianaB Textured Model Viewer\Temp\StagingArea\android-libraries\de_festivalcity-release\res\drawable\awards.jpg
drawable\bg.jpg
Src: () E:\Unity\Active OrianaB Textured Model ViewerLatest\Active OrianaB Textured Model Viewer\Temp\StagingArea\android-libraries\de_festivalcity-release\res\drawable\bg.jpg
drawable\bg1.jpg
Src: () E:\Unity\Active OrianaB Textured Model ViewerLatest\Active OrianaB Textured Model Viewer\Temp\StagingArea\android-libraries\de_festivalcity-release\res\drawable\bg1.jpg
drawable\bg2.jpg
Src: () E:\Unity\Active OrianaB Textured Model ViewerLatest\Active OrianaB Textured Model Viewer\Temp\StagingArea\android-libraries\de_festivalcity-release\res\drawable\bg2.jpg
drawable\bg3.jpg
Src: () E:\Unity\Active OrianaB Textured Model ViewerLatest\Active OrianaB Textured Model Viewer\Temp\StagingArea\android-libraries\de_festivalcity-release\res\drawable\bg3.jpg
drawable\bg4.jpg
Src: () E:\Unity\Active OrianaB Textured Model ViewerLatest\Active OrianaB Textured Model Viewer\Temp\StagingArea\android-libraries\de_festivalcity-release\res\drawable\bg4.jpg
drawable\bg5.jpg
Src: () E:\Unity\Active OrianaB Textured Model ViewerLatest\Active OrianaB Textured Model Viewer\Temp\StagingArea\android-libraries\de_festivalcity-release\res\drawable\bg5.jpg
drawable\bg6.jpg
Src: () E:\Unity\Active OrianaB Textured Model ViewerLatest\Active OrianaB Textured Model Viewer\Temp\StagingArea\android-libraries\de_festivalcity-release\res\drawable\bg6.jpg
drawable\browser_back.png
Src: () E:\Unity\Active OrianaB Textured Model ViewerLatest\Active OrianaB Textured Model Viewer\Temp\StagingArea\android-libraries\de_festivalcity-release\res\drawable\browser_back.png
drawable\browser_back_v2.png
Src: () E:\Unity\Active OrianaB Textured Model ViewerLatest\Active OrianaB Textured Model Viewer\Temp\StagingArea\android-libraries\de_festivalcity-release\res\drawable\browser_back_v2.png
drawable\browser_forward.png
Src: () E:\Unity\Active OrianaB Textured Model ViewerLatest\Active OrianaB Textured Model Viewer\Temp\StagingArea\android-libraries\de_festivalcity-release\res\drawable\browser_forward.png
drawable\browser_forward_v2.png
Src: () E:\Unity\Active OrianaB Textured Model ViewerLatest\Active OrianaB Textured Model Viewer\Temp\StagingArea\android-libraries\de_festivalcity-release\res\drawable\browser_forward_v2.png
drawable\browser_refresh.png
Src: () E:\Unity\Active OrianaB Textured Model ViewerLatest\Active OrianaB Textured Model Viewer\Temp\StagingArea\android-libraries\de_festivalcity-release\res\drawable\browser_refresh.png
drawable\cardplaceholder.jpg
Src: () E:\Unity\Active OrianaB Textured Model ViewerLatest\Active OrianaB Textured Model Viewer\Temp\StagingArea\android-libraries\de_festivalcity-release\res\drawable\cardplaceholder.jpg
drawable\cardshape.xml
Src: () E:\Unity\Active OrianaB Textured Model ViewerLatest\Active OrianaB Textured Model Viewer\Temp\StagingArea\android-libraries\de_festivalcity-release\res\drawable\cardshape.xml
drawable\cardshaped.xml
Src: () E:\Unity\Active OrianaB Textured Model ViewerLatest\Active OrianaB Textured Model Viewer\Temp\StagingArea\android-libraries\de_festivalcity-release\res\drawable\cardshaped.xml
drawable\cfc_logo.png
Src: () E:\Unity\Active OrianaB Textured Model ViewerLatest\Active OrianaB Textured Model Viewer\Temp\StagingArea\android-libraries\de_festivalcity-release\res\drawable\cfc_logo.png
drawable\cfc_mono.png
Src: () E:\Unity\Active OrianaB Textured Model ViewerLatest\Active OrianaB Textured Model Viewer\Temp\StagingArea\android-libraries\de_festivalcity-release\res\drawable\cfc_mono.png
drawable\cfc_splash.jpg
Src: () E:\Unity\Active OrianaB Textured Model ViewerLatest\Active OrianaB Textured Model Viewer\Temp\StagingArea\android-libraries\de_festivalcity-release\res\drawable\cfc_splash.jpg
drawable\cfcicon.png
Src: () E:\Unity\Active OrianaB Textured Model ViewerLatest\Active OrianaB Textured Model Viewer\Temp\StagingArea\android-libraries\de_festivalcity-release\res\drawable\cfcicon.png
Src: (mdpi-v4) E:\Unity\Active OrianaB Textured Model ViewerLatest\Active OrianaB Textured Model Viewer\Temp\StagingArea\android-libraries\de_festivalcity-release\res\drawable-mdpi-v4\cfcicon.png
Src: (xxhdpi-v4) E:\Unity\Active OrianaB Textured Model ViewerLatest\Active OrianaB Textured Model Viewer\Temp\StagingArea\android-libraries\de_festivalcity-release\res\drawable-xxhdpi-v4\cfcicon.png
drawable\close_black.png
Src: () E:\Unity\Active OrianaB Textured Model ViewerLatest\Active OrianaB Textured Model Viewer\Temp\StagingArea\android-libraries\de_festivalcity-release\res\drawable\close_black.png
drawable\close_icon.png
Src: () E:\Unity\Active OrianaB Textured Model ViewerLatest\Active OrianaB Textured Model Viewer\Temp\StagingArea\android-libraries\de_festivalcity-release\res\drawable\close_icon.png
drawable\close_icon_v2.png
Src: () E:\Unity\Active OrianaB Textured Model ViewerLatest\Active OrianaB Textured Model Viewer\Temp\StagingArea\android-libraries\de_festivalcity-release\res\drawable\close_icon_v2.png
drawable\contact_facebook_black.png
Src: () E:\Unity\Active OrianaB Textured Model ViewerLatest\Active OrianaB Textured Model Viewer\Temp\StagingArea\android-libraries\de_festivalcity-release\res\drawable\contact_facebook_black.png
drawable\contact_facebook_white.png
Src: () E:\Unity\Active OrianaB Textured Model ViewerLatest\Active OrianaB Textured Model Viewer\Temp\StagingArea\android-libraries\de_festivalcity-release\res\drawable\contact_facebook_white.png
drawable\contact_generic_black.png
Src: () E:\Unity\Active OrianaB Textured Model ViewerLatest\Active OrianaB Textured Model Viewer\Temp\StagingArea\android-libraries\de_festivalcity-release\res\drawable\contact_generic_black.png
drawable\contact_generic_white.png
Src: () E:\Unity\Active OrianaB Textured Model ViewerLatest\Active OrianaB Textured Model Viewer\Temp\StagingArea\android-libraries\de_festivalcity-release\res\drawable\contact_generic_white.png
drawable\contact_home_black.png
Src: () E:\Unity\Active OrianaB Textured Model ViewerLatest\Active OrianaB Textured Model Viewer\Temp\StagingArea\android-libraries\de_festivalcity-release\res\drawable\contact_home_black.png
drawable\contact_home_white.png
Src: () E:\Unity\Active OrianaB Textured Model ViewerLatest\Active OrianaB Textured Model Viewer\Temp\StagingArea\android-libraries\de_festivalcity-release\res\drawable\contact_home_white.png
drawable\contact_hours_black.png
Src: () E:\Unity\Active OrianaB Textured Model ViewerLatest\Active OrianaB Textured Model Viewer\Temp\StagingArea\android-libraries\de_festivalcity-release\res\drawable\contact_hours_black.png
drawable\contact_hours_white.png
Src: () E:\Unity\Active OrianaB Textured Model ViewerLatest\Active OrianaB Textured Model Viewer\Temp\StagingArea\android-libraries\de_festivalcity-release\res\drawable\contact_hours_white.png
drawable\contact_instagram_black.png
Src: () E:\Unity\Active OrianaB Textured Model ViewerLatest\Active OrianaB Textured Model Viewer\Temp\StagingArea\android-libraries\de_festivalcity-release\res\drawable\contact_instagram_black.png
drawable\contact_instagram_white.png
Src: () E:\Unity\Active OrianaB Textured Model ViewerLatest\Active OrianaB Textured Model Viewer\Temp\StagingArea\android-libraries\de_festivalcity-release\res\drawable\contact_instagram_white.png
drawable\contact_mail_black.png
Src: () E:\Unity\Active OrianaB Textured Model ViewerLatest\Active OrianaB Textured Model Viewer\Temp\StagingArea\android-libraries\de_festivalcity-release\res\drawable\contact_mail_bla

These kind of errors are sometimes hard to diagnose, especially since the message is so long, with only parts of it being the actual error.

In the error message you posted, here is the actual error (there are multiple errors, this is just one of them):

stderr[ E:\Unity\Active OrianaB
Textured Model ViewerLatest\Active
OrianaB Textured Model
Viewer\Temp\StagingArea\android-libraries\de_festivalcity-release\res\values\values.xml:79:
error: Error retrieving parent for
item: No resource found that matches
the given name
‘Theme.AppCompat.NoActionBar’.

E:\Unity\Active OrianaB Textured Model
ViewerLatest\Active OrianaB Textured
Model
Viewer\Temp\StagingArea\android-libraries\de_festivalcity-release\res\values\values.xml:83:
error: Error: No resource found that
matches the given name: attr
‘colorAccent’. E:\Unity\Active OrianaB
Textured Model ViewerLatest\Active
OrianaB Textured Model
Viewer\Temp\StagingArea\android-libraries\de_festivalcity-release\res\values\values.xml:81:
error: Error: No resource found that
matches the given name: attr
‘colorPrimary’.

Looks like your project is referencing certain Android resources (colorAccent for example), but these are not defined anywhere. From the log, it is seen that a particular plugin called de_festivalcity-release is the one that is related to this issue. Maybe that can help you understand where the problem is.

These resources are probably part of a support library or some dependency that is missing from your project (like the appcompat or android support libraries). You should check your plugins’ official documentation to see its requirements and dependencies, and add all of them to your Unity project.

NOTE: I can provide one-on-one, professional help with solving this exact kind of issues (Android build errors). In case you’re interested, feel free to contact me via this link: Fix your unity build errors on android by Lysergide | Fiverr

I get the same issue. any one solve it or have a idea to solve this problem.