- Home /
Failed to recompile resources Facebook sdk integration with admob, unity ads plugin
I am facing this error failed to recompile resources. Can any please guide me in solving this?
CommandInvokationFailure: Failed to re-package resources. E:\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\build-tools\26.0.1\aapt.exe package --auto-add-overlay -v -f -m -J "gen" -M "AndroidManifest.xml" -S "res" -I "E:/adt-bundle-windows-x86_64-20140702/adt-bundle-windows-x86_64-20140702/sdk\platforms\android-26\android.jar" -F bin/resources.ap_ --extra-packages android.support.graphics.drawable.animated:android.support.v7.appcompat:android.support.v7.appcompat:android.support.v7.cardview:android.support.customtabs:com.facebook:com.facebook.android:com.google.android.gms.measurement:com.google.android.gms.measurement.impl:com.google.firebase:com.google.firebase.remoteconfig:com.google.firebase.crash:com.google.firebase.iid:com.google.unity:com.heyzap:com.google.example.games.mainlibproj:com.google.android.gms.ads.impl:com.google.android.gms.ads:com.google.android.gms.auth.api:com.google.android.gms.auth:com.google.android.gms.base:com.google.android.gms:com.google.android.gms.clearcut:com.google.android.gms.drive:com.google.android.gms.games:com.google.android.gms.gass:com.google.android.gms.nearby:com.google.android.gms.tasks:android.support.compat:android.support.coreui:android.support.coreutils:android.support.fragment:android.support.mediacompat:android.support.v4:android.support.v4:android.support.graphics.drawable:com.abc.apps.resources:com.unity3d.ads -S "E:\fb\Temp\StagingArea\android-libraries\animated-vector-drawable-25.3.1\res" -S "E:\fb\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res" -S "E:\fb\Temp\StagingArea\android-libraries\appcompat-v7-25.3.1\res" -S "E:\fb\Temp\StagingArea\android-libraries\cardview-v7-25.3.1\res" -S "E:\fb\Temp\StagingArea\android-libraries\customtabs-25.3.1\res" -S "E:\fb\Temp\StagingArea\android-libraries\facebook-android-sdk-4.23.0\res" -S "E:\fb\Temp\StagingArea\android-libraries\facebook-android-wrapper-7.10.0\res" -S "E:\fb\Temp\StagingArea\android-libraries\firebase-analytics-10.0.1\res" -S "E:\fb\Temp\StagingArea\android-libraries\firebase-analytics-impl-10.0.1\res" -S "E:\fb\Temp\StagingArea\android-libraries\firebase-common-10.0.1\res" -S "E:\fb\Temp\StagingArea\android-libraries\firebase-config-10.0.1\res" -S "E:\fb\Temp\StagingArea\android-libraries\firebase-crash-10.0.1\res" -S "E:\fb\Temp\StagingArea\android-libraries\firebase-iid-10.0.1\res" -S "E:\fb\Temp\StagingArea\android-libraries\play-services-ads-10.0.1\res" -S "E:\fb\Temp\StagingArea\android-libraries\play-services-ads-lite-10.0.1\res" -S "E:\fb\Temp\StagingArea\android-libraries\play-services-auth-10.0.1\res" -S "E:\fb\Temp\StagingArea\android-libraries\play-services-auth-base-10.0.1\res" -S "E:\fb\Temp\StagingArea\android-libraries\play-services-base-10.0.1\res" -S "E:\fb\Temp\StagingArea\android-libraries\play-services-basement-10.0.1\res" -S "E:\fb\Temp\StagingArea\android-libraries\play-services-clearcut-10.0.1\res" -S "E:\fb\Temp\StagingArea\android-libraries\play-services-drive-10.0.1\res" -S "E:\fb\Temp\StagingArea\android-libraries\play-services-games-10.0.1\res" -S "E:\fb\Temp\StagingArea\android-libraries\play-services-gass-10.0.1\res" -S "E:\fb\Temp\StagingArea\android-libraries\play-services-nearby-10.0.1\res" -S "E:\fb\Temp\StagingArea\android-libraries\play-services-tasks-10.0.1\res" -S "E:\fb\Temp\StagingArea\android-libraries\support-compat-25.3.1\res" -S "E:\fb\Temp\StagingArea\android-libraries\support-core-ui-25.3.1\res" -S "E:\fb\Temp\StagingArea\android-libraries\support-core-utils-25.3.1\res" -S "E:\fb\Temp\StagingArea\android-libraries\support-fragment-25.3.1\res" -S "E:\fb\Temp\StagingArea\android-libraries\support-media-compat-25.3.1\res" -S "E:\fb\Temp\StagingArea\android-libraries\support-v4-24.0.0\res" -S "E:\fb\Temp\StagingArea\android-libraries\support-v4-25.3.1\res" -S "E:\fb\Temp\StagingArea\android-libraries\support-vector-drawable-25.3.1\res" -S "E:\fb\Temp\StagingArea\android-libraries\unity-android-resources\res" -S "E:\fb\Temp\StagingArea\android-libraries\UnityAds\res"
stderr[ E:\fb\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\abc_alert_dialog_button_bar_material.xml:18: note: removing attribute http://schemas.android.com/apk/res/android:layoutDirection from E:\fb\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\abc_alert_dialog_button_bar_material.xml: note: using v17 attributes; synthesizing resource com.abc.apps:layout/abc_alert_dialog_button_bar_material for configuration v17. E:\fb\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\abc_alert_dialog_material.xml:48: note: removing attribute http://schemas.android.com/apk/res/android:textAlignment from E:\fb\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\abc_alert_dialog_material.xml: note: using v17 attributes; synthesizing resource com.abc.apps:layout/abc_alert_dialog_material for configuration v17. E:\fb\Temp\StagingArea\android-libraries\appcompat-v7-25.3.1\res\layout\abc_alert_dialog_title_material.xml:45: note: removing attribute http://schemas.android.com/apk/res/android:textAlignment from E:\fb\Temp\StagingArea\android-libraries\appcompat-v7-25.3.1\res\layout\abc_alert_dialog_title_material.xml:36: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginEnd from E:\fb\Temp\StagingArea\android-libraries\appcompat-v7-25.3.1\res\layout\abc_alert_dialog_title_material.xml: note: using v17 attributes; synthesizing resource com.abc.apps:layout/abc_alert_dialog_title_material for configuration v17. E:\fb\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\abc_dialog_title_material.xml:29: note: removing attribute http://schemas.android.com/apk/res/android:textAlignment from E:\fb\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\abc_dialog_title_material.xml: note: using v17 attributes; synthesizing resource com.abc.apps:layout/abc_dialog_title_material for configuration v17. E:\fb\Temp\StagingArea\android-libraries\appcompat-v7-25.3.1\res\layout\abc_popup_menu_header_item_layout.xml:24: note: removing attribute http://schemas.android.com/apk/res/android:textAlignment from E:\fb\Temp\StagingArea\android-libraries\appcompat-v7-25.3.1\res\layout\abc_popup_menu_header_item_layout.xml: note: using v17 attributes; synthesizing resource com.abc.apps:layout/abc_popup_menu_header_item_layout for configuration v17. E:\fb\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\abc_screen_toolbar.xml:27: note: removing attribute http://schemas.android.com/apk/res/android:touchscreenBlocksFocus from E:\fb\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\abc_screen_toolbar.xml: note: using v21 attributes; synthesizing resource com.abc.apps:layout/abc_screen_toolbar for configuration v21. E:\fb\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\abc_search_view.xml:47: note: removing attribute http://schemas.android.com/apk/res/android:layoutDirection from E:\fb\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\abc_search_view.xml: note: using v17 attributes; synthesizing resource com.abc.apps:layout/abc_search_view for configuration v17. E:\fb\Temp\StagingArea\android-libraries\facebook-android-sdk-4.23.0\res\layout\com_facebook_device_auth_dialog_fragment.xml:80: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginEnd from E:\fb\Temp\StagingArea\android-libraries\facebook-android-sdk-4.23.0\res\layout\com_facebook_device_auth_dialog_fragment.xml:80: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from E:\fb\Temp\StagingArea\android-libraries\facebook-android-sdk-4.23.0\res\layout\com_facebook_device_auth_dialog_fragment.xml: note: using v17 attributes; synthesizing resource com.abc.apps:layout/com_facebook_device_auth_dialog_fragment for configuration v17. E:\fb\Temp\StagingArea\android-libraries\facebook-android-sdk-4.23.0\res\layout\com_facebook_smart_device_dialog_fragment.xml:94: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from E:\fb\Temp\StagingArea\android-libraries\facebook-android-sdk-4.23.0\res\layout\com_facebook_smart_device_dialog_fragment.xml:94: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginEnd from E:\fb\Temp\StagingArea\android-libraries\facebook-android-sdk-4.23.0\res\layout\com_facebook_smart_device_dialog_fragment.xml:83: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from E:\fb\Temp\StagingArea\android-libraries\facebook-android-sdk-4.23.0\res\layout\com_facebook_smart_device_dialog_fragment.xml:83: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginEnd from E:\fb\Temp\StagingArea\android-libraries\facebook-android-sdk-4.23.0\res\layout\com_facebook_smart_device_dialog_fragment.xml:47: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from E:\fb\Temp\StagingArea\android-libraries\facebook-android-sdk-4.23.0\res\layout\com_facebook_smart_device_dialog_fragment.xml: note: using v17 attributes; synthesizing resource com.abc.apps:layout/com_facebook_smart_device_dialog_fragment for configuration v17. E:\fb\Temp\StagingArea\android-libraries\appcompat-v7-25.3.1\res\layout\notification_action.xml:17: note: removing attribute http://schemas.android.com/apk/res/android:paddingStart from E:\fb\Temp\StagingArea\android-libraries\appcompat-v7-25.3.1\res\layout\notification_action.xml:32: note: removing attribute http://schemas.android.com/apk/res/android:paddingStart from E:\fb\Temp\StagingArea\android-libraries\appcompat-v7-25.3.1\res\layout\notification_action.xml: note: using v17 attributes; synthesizing resource com.abc.apps:layout/notification_action for configuration v17. E:\fb\Temp\StagingArea\android-libraries\appcompat-v7-25.3.1\res\layout\notification_action_tombstone.xml:18: note: removing attribute http://schemas.android.com/apk/res/android:paddingStart from E:\fb\Temp\StagingArea\android-libraries\appcompat-v7-25.3.1\res\layout\notification_action_tombstone.xml:37: note: removing attribute http://schemas.android.com/apk/res/android:paddingStart from E:\fb\Temp\StagingArea\android-libraries\appcompat-v7-25.3.1\res\layout\notification_action_tombstone.xml: note: using v17 attributes; synthesizing resource com.abc.apps:layout/notification_action_tombstone for configuration v17. E:\fb\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\notification_template_big_media.xml:42: note: removing attribute http://schemas.android.com/apk/res/android:layoutDirection from E:\fb\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\notification_template_big_media.xml:34: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from E:\fb\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\notification_template_big_media.xml:34: note: removing attribute http://schemas.android.com/apk/res/android:layout_toStartOf from E:\fb\Temp\StagingArea\android-libraries\appcompat-v7-25.3.1\res\layout-v11\notification_template_big_media.xml:42: note: removing attribute http://schemas.android.com/apk/res/android:layoutDirection from E:\fb\Temp\StagingArea\android-libraries\appcompat-v7-25.3.1\res\layout-v11\notification_template_big_media.xml:34: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from E:\fb\Temp\StagingArea\android-libraries\appcompat-v7-25.3.1\res\layout-v11\notification_template_big_media.xml:34: note: removing attribute http://schemas.android.com/apk/res/android:layout_toStartOf from E:\fb\Temp\StagingArea\android-libraries\appcompat-v7-25.3.1\res\layout-v11\notification_template_big_media.xml:27: note: removing attribute http://schemas.android.com/apk/res/android:layout_alignParentEnd from E:\fb\Temp\StagingArea\android-libraries\appcompat-v7-25.3.1\res\layout-v11\notification_template_big_media.xml: note: using v17 attributes; synthesizing resource com.abc.apps:layout/notification_template_big_media for configuration v17. E:\fb\Temp\StagingArea\android-libraries\appcompat-v7-25.3.1\res\layout-v11\notification_template_big_media_custom.xml:89: note: removing attribute http://schemas.android.com/apk/res/android:layoutDirection from E:\fb\Temp\StagingArea\android-libraries\appcompat-v7-25.3.1\res\layout-v11\notification_template_big_media_custom.xml:34: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from E:\fb\Temp\StagingArea\android-libraries\appcompat-v7-25.3.1\res\layout-v11\notification_template_big_media_custom.xml:34: note: removing attribute http://schemas.android.com/apk/res/android:layout_toStartOf from E:\fb\Temp\StagingArea\android-libraries\appcompat-v7-25.3.1\res\layout-v11\notification_template_big_media_custom.xml:56: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginEnd from E:\fb\Temp\StagingArea\android-libraries\appcompat-v7-25.3.1\res\layout-v11\notification_template_big_media_custom.xml:45: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from E:\fb\Temp\StagingArea\android-libraries\appcompat-v7-25.3.1\res\layout-v11\notification_template_big_media_custom.xml:45: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginEnd from E:\fb\Temp\StagingArea\android-libraries\appcompat-v7-25.3.1\res\layout-v11\notification_template_big_media_custom.xml:27: note: removing attribute http://schemas.android.com/apk/res/android:layout_alignParentEnd from E:\fb\Temp\StagingArea\android-libraries\appcompat-v7-25.3.1\res\layout-v11\notification_template_big_media_custom.xml: note: using v17 attributes; synthesizing resource com.abc.apps:layout/notification_template_big_media_custom for configuration v17. E:\fb\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\notification_template_big_media_narrow.xml:60: note: removing attribute http://schemas.android.com/apk/res/android:layout_toEndOf from E:\fb\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\notification_template_big_media_narrow.xml:46: note: removing attribute http://schemas.android.com/apk/res/android:layout_toEndOf from E:\fb\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\notification_template_big_media_narrow.xml:46: note: removing attribute http://schemas.android.com/apk/res/android:layoutDirection from E:\fb\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\notification_template_big_media_narrow.xml:38: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from E:\fb\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\notification_template_big_media_narrow.xml:38: note: removing attribute http://schemas.android.com/apk/res/android:layout_toStartOf from E:\fb\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\notification_template_big_media_narrow.xml:30: note: removing attribute http://schemas.android.com/apk/res/android:layout_alignParentEnd from E:\fb\Temp\StagingArea\android-libraries\appcompat-v7-25.3.1\res\layout-v11\notification_template_big_media_narrow.xml:60: note: removing attribute http://schemas.android.com/apk/res/android:layout_toEndOf from E:\fb\Temp\StagingArea\android-libraries\appcompat-v7-25.3.1\res\layout-v11\notification_template_big_media_narrow.xml:46: note: removing attribute http://schemas.android.com/apk/res/android:layout_toEndOf from E:\fb\Temp\StagingArea\android-libraries\appcompat-v7-25.3.1\res\layout-v11\not
Answer by peledkfir · Oct 19, 2017 at 11:43 AM
Hey, found any solution? I'm facing the same issue..
Yes, i found solution after 1 day of google search. $$anonymous$$y problem was 2 Appcompact files. One with version 23 and one with version 25. So i removed one. Please check out your .arr files.
@game4444 Can you please go further on what you did? I am beating my head against the wall trying to fix this
After 2 days banging my head on the keyboard I've started a new test project and imported the library and it just worked. So from that point I had the idea something is wrong in my unity project itself rather how I use it. I needed to force unity's import, so I've deleted the Library, obj, Temp folders (For safety measures, move it to different location ins$$anonymous$$d, and make sure unity is closed) - Reopened the project and problem solved.
I'll just state my issue was on different library, google-signin-unity, however it worth the shot
Good luck :)
Your answer
Follow this Question
Related Questions
Facebook unity sdk 5.0.3 and soomla 1 Answer
Problem Geting friends Facebook Sdk 0 Answers
Facebook SDK v7.2 login not working when on android 2 Answers
How to get FB SDK accesToken for page ? 0 Answers