Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
2
Question by seriousitydevelopment · Jun 08, 2015 at 10:47 AM · errorbuildfacebooksdk

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

I imported these assets: Chartboost, facebook sdk, soomla.

Since I did that, I can no longer build an apk file, since I get the error mentioned in the title. I've looked for solutions and other people with the same problem, and the answers is often "Try another API level in your SDK manager", and I've tried API 20, API 21, API 22, without a difference. Another solution I've read is that I should replace the file zipalign.exe to the sdk\tools directory, I've done that aswell but have the same problem. Anyone that knows how to fix this? It's really driving me crazy! Thanks

alt text

Error message:

CommandInvokationFailure: Failed to re-package resources. See the Console for details. D:\Androidsdk\build-tools\23.0.0_rc2\aapt.exe package --auto-add-overlay -v -f -m -J gen -M AndroidManifest.xml -S "res" -I "D:/Androidsdk\platforms\android-22\android.jar" -F bin/resources.ap_ --extra-packages com.chartboost.sdk.unity:com.facebook.android:com.google.android.gms:com.unity3d.ads.android -S "D:\UnityProjects\Breakfast challenge\Temp\StagingArea\android-libraries\facebook\res" -S "D:\UnityProjects\Breakfast challenge\Temp\StagingArea\android-libraries\google-play-services_lib\res" -S "D:\UnityProjects\Breakfast challenge\Temp\StagingArea\android-libraries\unityads\res"

stderr[ D:\UnityProjects\Breakfast challenge\Temp\StagingArea\android-libraries\facebook\res\drawable\com_facebook_button_like_background 1.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited D:\UnityProjects\Breakfast challenge\Temp\StagingArea\android-libraries\facebook\res\drawable-hdpi\com_facebook_button_like_background 1.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited D:\UnityProjects\Breakfast challenge\Temp\StagingArea\android-libraries\facebook\res\drawable-xhdpi\com_facebook_button_like_background 1.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited D:\UnityProjects\Breakfast challenge\Temp\StagingArea\android-libraries\facebook\res\drawable-xxhdpi\com_facebook_button_like_background 1.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited D:\UnityProjects\Breakfast challenge\Temp\StagingArea\android-libraries\facebook\res\drawable\com_facebook_button_like_background.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited D:\UnityProjects\Breakfast challenge\Temp\StagingArea\android-libraries\facebook\res\drawable-hdpi\com_facebook_button_like_background.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited D:\UnityProjects\Breakfast challenge\Temp\StagingArea\android-libraries\facebook\res\drawable-xhdpi\com_facebook_button_like_background.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited D:\UnityProjects\Breakfast challenge\Temp\StagingArea\android-libraries\facebook\res\drawable-xxhdpi\com_facebook_button_like_background.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited D:\UnityProjects\Breakfast challenge\Temp\StagingArea\android-libraries\facebook\res\drawable\com_facebook_button_like_background_selected 1.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited D:\UnityProjects\Breakfast challenge\Temp\StagingArea\android-libraries\facebook\res\drawable-hdpi\com_facebook_button_like_background_selected 1.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited D:\UnityProjects\Breakfast challenge\Temp\StagingArea\android-libraries\facebook\res\drawable-xhdpi\com_facebook_button_like_background_selected 1.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited D:\UnityProjects\Breakfast challenge\Temp\StagingArea\android-libraries\facebook\res\drawable-xxhdpi\com_facebook_button_like_background_selected 1.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited D:\UnityProjects\Breakfast challenge\Temp\StagingArea\android-libraries\facebook\res\drawable\com_facebook_button_like_background_selected.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited D:\UnityProjects\Breakfast challenge\Temp\StagingArea\android-libraries\facebook\res\drawable-hdpi\com_facebook_button_like_background_selected.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited D:\UnityProjects\Breakfast challenge\Temp\StagingArea\android-libraries\facebook\res\drawable-xhdpi\com_facebook_button_like_background_selected.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited D:\UnityProjects\Breakfast challenge\Temp\StagingArea\android-libraries\facebook\res\drawable-xxhdpi\com_facebook_button_like_background_selected.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited D:\UnityProjects\Breakfast challenge\Temp\StagingArea\android-libraries\facebook\res\drawable\com_facebook_button_like_icon 1.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited D:\UnityProjects\Breakfast challenge\Temp\StagingArea\android-libraries\facebook\res\drawable-hdpi\com_facebook_button_like_icon 1.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited D:\UnityProjects\Breakfast challenge\Temp\StagingArea\android-libraries\facebook\res\drawable-xhdpi\com_facebook_button_like_icon 1.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited D:\UnityProjects\Breakfast challenge\Temp\StagingArea\android-libraries\facebook\res\drawable-xxhdpi\com_facebook_button_like_icon 1.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited D:\UnityProjects\Breakfast challenge\Temp\StagingArea\android-libraries\facebook\res\drawable\com_facebook_button_like_icon.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited D:\UnityProjects\Breakfast challenge\Temp\StagingArea\android-libraries\facebook\res\drawable-hdpi\com_facebook_button_like_icon.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited D:\UnityProjects\Breakfast challenge\Temp\StagingArea\android-libraries\facebook\res\drawable-xxhdpi\com_facebook_button_like_icon.png: libpng D:\Unwitarning: iCCyP: NProt ojecrecognizing known sRts\BreakGfB profiast cle hallethnge\at has been edited Temp\StagingArea\android-libraries\facebook\res\drawable-xhdpi\com_facebook_button_like_icon.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited D:\UnityProjects\Breakfast challenge\Temp\StagingArea\android-libraries\facebook\res\drawable\com_facebook_button_like_icon_selected 1.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited D:\UnityProjects\Breakfast challenge\Temp\StagingArea\android-libraries\facebook\res\drawable-hdpi\com_facebook_button_like_icon_selected 1.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited D:\UnityProjects\Breakfast challenge\Temp\StagingArea\android-libraries\facebook\res\drawable-xhdpi\com_facebook_button_like_icon_selected 1.png: libpng warning: iCCP: Not recognizing known sRGB D:\Unprofile that has been ediityProjted ects\Breakfast challenge\Temp\StagingArea\android-libraries\facebook\res\drawable-xxhdpi\com_facebook_button_like_icon_selected 1.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited D:\UnityProjects\Breakfast challenge\Temp\StagingArea\android-libraries\facebook\res\drawable\com_facebook_button_like_icon_selected.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited D:\UnityProjects\Breakfast challenge\Temp\StagingArea\android-libraries\facebook\res\drawable-hdpi\com_facebook_button_like_icon_selected.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited D:\UnityProjects\Breakfast challenge\Temp\StagingArea\android-libraries\facebook\res\drawable-xhdpi\com_facebook_button_like_icon_selected.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited D:\UnityProjects\Breakfast challenge\Temp\StagingArea\android-libraries\facebook\res\drawable-xxhdpi\com_facebook_button_like_icon_selected.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited D:\UnityProjects\Breakfast challenge\Temp\StagingArea\android-libraries\facebook\res\drawable\com_facebook_close 1.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited D:\UnityProjects\Breakfast challenge\Temp\StagingArea\android-libraries\facebook\res\drawable-ldpi\com_facebook_close 1.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited D:\UnityProjects\Breakfast challenge\Temp\StagingArea\android-libraries\facebook\res\drawable-hdpi\com_facebook_close 1.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited D:\UnityProjects\Breakfast challenge\Temp\StagingArea\android-libraries\facebook\res\drawable-xhdpi\com_facebook_close 1.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited D:\UnityProjects\Breakfast challenge\Temp\StagingArea\android-libraries\facebook\res\drawable\com_facebook_close.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited D:\UnityProjects\Breakfast challenge\Temp\StagingArea\android-libraries\facebook\res\drawable-ldpi\com_facebook_close.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited D:\UnityProjects\Breakfast challenge\Temp\StagingArea\android-libraries\facebook\res\drawable-hdpi\com_facebook_close.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited D:\UnityProjects\Breakfast challenge\Temp\StagingArea\android-libraries\facebook\res\drawable-xhdpi\com_facebook_close.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited res\drawable\com_facebook_button_blue 1.xml: Invalid file name: must contain only [a-z0-9_.] res\drawable\com_facebook_button_check 1.xml: Invalid file name: must contain only [a-z0-9_.] res\drawable\com_facebook_button_check_off 1.png: Invalid file name: must contain only [a-z0-9_.] res\drawable\com_facebook_button_check_on 1.png: Invalid file name: must contain only [a-z0-9_.] res\drawable\com_facebook_button_like 1.xml: Invalid file name: must contain only [a-z0-9_.] res\drawable\com_facebook_button_like_background 1.png: Invalid file name: must contain only [a-z0-9_.] res\drawable-hdpi-v4\com_facebook_button_like_background 1.png: Invalid file name: must contain only [a-z0-9_.] res\drawable-xhdpi-v4\com_facebook_button_like_background 1.png: Invalid file name: must contain only [a-z0-9_.] res\drawable-xxhdpi-v4\com_facebook_button_like_background 1.png: Invalid file name: must contain only [a-z0-9_.] res\drawable\com_facebook_button_like_background_selected 1.png: Invalid file name: must contain only [a-z0-9_.] res\drawable-hdpi-v4\com_facebook_button_like_background_selected 1.png: Invalid file name: must contain only [a-z0-9_.] res\drawable-xhdpi-v4\com_facebook_button_like_background_selected 1.png: Invalid file name: must contain only [a-z0-9_.] res\drawable-xxhdpi-v4\com_facebook_button_like_background_selected 1.png: Invalid file name: must contain only [a-z0-9_.] res\drawable\com_facebook_button_like_icon 1.png: Invalid file name: must contain only [a-z0-9_.] res\drawable-hdpi-v4\com_facebook_button_like_icon 1.png: Invalid file name: must contain only [a-z0-9_.] res\drawable-xhdpi-v4\com_facebook_button_like_icon 1.png: Invalid file name: must contain only [a-z0-9_.] res\drawable-xxhdpi-v4\com_facebook_button_like_icon 1.png: Invalid file name: must contain only [a-z0-9_.] res\drawable\com_facebook_button_like_icon_selected 1.png: Invalid file name: must contain only [a-z0-9_.] res\drawable-hdpi-v4\com_facebook_button_like_icon_selected 1.png: Invalid file name: must contain only [a-z0-9_.] res\drawable-xhdpi-v4\com_facebook_button_like_icon_selected 1.png: Invalid file name: must contain only [a-z0-9_.] res\drawable-xxhdpi-v4\com_facebook_button_like_icon_selected 1.png: Invalid file name: must contain only [a-z0-9_.] res\drawable\com_facebook_button_like_pressed 1.png: Invalid file name: must contain only [a-z0-9_.] res\drawable-hdpi-v4\com_facebook_button_like_pressed 1.png: Invalid file name: must contain only [a-z0-9_.] res\drawable-xhdpi-v4\com_facebook_button_like_pressed 1.png: Invalid file name: must contain only [a-z0-9_.] res\drawable-xxhdpi-v4\com_facebook_button_like_pressed 1.png: Invalid file name: must contain only [a-z0-9_.] res\drawable\com_facebook_button_like_selected 1.xml: Invalid file name: must contain only [a-z0-9_.] res\drawable\com_facebook_close 1.png: Invalid file name: must contain only [a-z0-9_.] res\drawable-ldpi-v4\com_facebook_close 1.png: Invalid file name: must contain only [a-z0-9_.] res\drawable-hdpi-v4\com_facebook_close 1.png: Invalid file name: must contain only [a-z0-9_.] res\drawable-xhdpi-v4\com_facebook_close 1.png: Invalid file name: must contain only [a-z0-9_.] res\drawable\com_facebook_inverse_icon 1.png: Invalid file name: must contain only [a-z0-9_.] res\drawable-mdpi-v4\com_facebook_inverse_icon 1.png: Invalid file name: must contain only [a-z0-9_.] res\drawable-hdpi-v4\com_facebook_inverse_icon 1.png: Invalid file name: must contain only [a-z0-9_.] res\drawable-xhdpi-v4\com_facebook_inverse_icon 1.png: Invalid file name: must contain only [a-z0-9_.] res\drawable\com_facebook_loginbutton_silver 1.xml: Invalid file name: must contain only [a-z0-9_.] res\drawable\com_facebook_logo 1.png: Invalid file name: must contain only [a-z0-9_.] res\drawable-hdpi-v4\com_facebook_logo 1.png: Invalid file name: must contain only [a-z0-9_.] res\drawable-xhdpi-v4\com_facebook_logo 1.png: Invalid file name: must contain only [a-z0-9_.] res\drawable\com_facebook_picker_item_background 1.xml: Invalid file name: must contain only [a-z0-9_.] res\drawable\com_facebook_picker_list_selector 1.xml: Invalid file name: must contain only [a-z0-9_.] res\drawable\com_facebook_picker_list_selector_background_transition 1.xml: Invalid file name: must contain only [a-z0-9_.] res\drawable-mdpi-v4\com_facebook_picker_magnifier 1.png: Invalid file name: must contain only [a-z0-9_.] res\drawable-hdpi-v4\com_facebook_picker_magnifier 1.png: Invalid file name: must contain only [a-z0-9_.] res\drawable-xhdpi-v4\com_facebook_picker_magnifier 1.png: Invalid file name: must contain only [a-z0-9_.] res\drawable\com_facebook_picker_top_button 1.xml: Invalid file name: must contain only [a-z0-9_.] res\drawable\com_facebook_place_default_icon 1.png: Invalid file name: must contain only [a-z0-9_.] res\drawable\com_facebook_profile_default_icon 1.png: Invalid file name: must contain only [a-z0-9_.] res\drawable\com_facebook_profile_picture_blank_portrait 1.png: Invalid file name: must contain only [a-z0-9_.] res\drawable\com_facebook_profile_picture_blank_square 1.png: Invalid file name: must contain only [a-z0-9_.] res\drawable-mdpi-v4\com_facebook_tooltip_black_bottomnub 1.png: Invalid file name: must contain only [a-z0-9_.] res\drawable-hdpi-v4\com_facebook_tooltip_black_bottomnub 1.png: Invalid file name: must contain only [a-z0-9_.] res\drawable-xhdpi-v4\com_facebook_tooltip_black_bottomnub 1.png: Invalid file name: must contain only [a-z0-9_.] res\drawable-mdpi-v4\com_facebook_tooltip_black_topnub 1.png: Invalid file name: must contain only [a-z0-9_.] res\drawable-hdpi-v4\com_facebook_tooltip_black_topnub 1.png: Invalid file name: must contain only [a-z0-9_.] res\drawable-xhdpi-v4\com_facebook_tooltip_black_topnub 1.png: Invalid file name: must contain only [a-z0-9_.] res\drawable-mdpi-v4\com_facebook_tooltip_black_xout 1.png: Invalid file name: must contain only [a-z0-9_.] res\drawable-hdpi-v4\com_facebook_tooltip_black_xout 1.png: Invalid file name: must contain only [a-z0-9_.] res\drawable-xhdpi-v4\com_facebook_tooltip_black_xout 1.png: Invalid file name: must contain only [a-z0-9_.] res\drawable-mdpi-v4\com_facebook_tooltip_blue_bottomnub 1.png: Invalid file name: must contain only [a-z0-9_.] res\drawable-hdpi-v4\com_facebook_tooltip_blue_bottomnub 1.png: Invalid file name: must contain only [a-z0-9_.] res\drawable-xhdpi-v4\com_facebook_tooltip_blue_bottomnub 1.png: Invalid file name: must contain only [a-z0-9_.] res\drawable-mdpi-v4\com_facebook_tooltip_blue_topnub 1.png: Invalid file name: must contain only [a-z0-9_.] res\drawable-hdpi-v4\com_facebook_tooltip_blue_topnub 1.png: Invalid file name: must contain only [a-z0-9_.] res\drawable-xhdpi-v4\com_facebook_tooltip_blue_topnub 1.png: Invalid file name: must contain only [a-z0-9_.] res\drawable-mdpi-v4\com_facebook_tooltip_blue_xout 1.png: Invalid file name: must contain only [a-z0-9_.] res\drawable-hdpi-v4\com_facebook_tooltip_blue_xout 1.png: Invalid file n

3.png (235.5 kB)
Comment
Add comment · Show 2
10 |3000 characters needed characters left characters exceeded
â–¼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image $$anonymous$$ · Jul 28, 2015 at 03:13 AM 0
Share

I have the same problem. I was previously able to build for Android including Facebook SD$$anonymous$$ without a problem. Something regressed within the last week I think

avatar image Nidhii · Feb 18, 2016 at 07:41 AM 0
Share

Hi, Did you find any solution to this problem? Please help If you can :(

1 Reply

· Add your reply
  • Sort: 
avatar image
1

Answer by $$anonymous$$ · Jul 28, 2015 at 04:41 AM

I had the same problem. I think the Facebook SDK assets were corrupted when I upgraded to a new Facebook Unity SDK via the asset store. When I looked around I could see duplicated files scattered around in Assets/Facebook.

This fix worked for me: Completely remove the Facebook SDK from your Unity project and reinstall it. It is tricky though, I recommend backing up first.

My steps phase 1:

  • Backup Unity project

  • Note your current Facebook editor settings from Facebook > Edit Settings

  • Completely delete Assets/Facebook/

  • Completely delete Assets/Plugsin/Android/facebook/

  • (I then restarted Unity; that may not be necessary)

  • Install Facebook SDK from Unity asset store. Everything should be marked as new in the install preview if you deleted correctly. (btw I did not install the examples folder)

  • Facebook > Edit Settings to restore your settings

I wish it worked then but I hit several more bugs when building for Android which appear to be problems with the current Facebook SDK distribution. I had to do these additional fixes:

My steps phase 2:

  • Edit Assets/Facebook/Scripts/FB.cs line line 411 and append "|| UNITY_5_1". (This is a chronic bug with the Facebook library, every time Unity upgrades to a new release level it breaks. I wish they would find a better way to manage it)

  • I then got several errors like "already added: Landroid/support/v4/util/TimeUtils" which are due to duplicate Android libs in the build. If you hit these, check if you have any dup libs in Plugins/Android/ and Plugins/Android/facebook/libs/; if so remove the dup from the facebook/libs/ folder. I had two duplicates: android-support-v4, bolts-android-1.1.2

After that (finally) my Android builds worked again

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
â–¼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

3 People are following this question.

avatar image avatar image avatar image

Related Questions

Distribute terrain in zones 3 Answers

Can't Build to .apk in Unity 4.5.1f3!!!! 1 Answer

What does this error even mean? 1 Answer

CommandInvokationFailure: Unable to convert classes into dex format 0 Answers

android building error 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges