Skip to content

Conflict with Facebook SDK #20

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
ms250693 opened this issue Jan 23, 2018 · 1 comment
Open

Conflict with Facebook SDK #20

ms250693 opened this issue Jan 23, 2018 · 1 comment

Comments

@ms250693
Copy link

Hi, I am Using google sign in direct unity package version unity 1.0.2. Now if I include FB SDK 7.10.1 it can not be built and gives me an error of Command Invocation Failure.

Details of Error:
CommandInvokationFailure: Failed to re-package resources.
/Users/YudizSolutions/Library/Android/sdk/build-tools/27.0.2/aapt package --auto-add-overlay -v -f -m -J "gen" -M "AndroidManifest.xml" -S "res" -I "/Users/YudizSolutions/Library/Android/sdk/platforms/android-27/android.jar" -F bin/resources.ap_ --extra-packages android.support.graphics.drawable.animated:android.support.v7.appcompat:android.support.v7.cardview:android.support.customtabs:com.facebook:com.facebook.android:com.google.nativelib.googlesignin:com.google.android.gms.auth.api:com.google.android.gms.auth:com.google.android.gms.base:com.google.android.gms:com.google.android.gms.tasks:android.support.coreui:android.support.coreutils:android.support.fragment:android.support.mediacompat:android.support.v4:android.support.graphics.drawable -S "/Users/YudizSolutions/Documents/Projects/GoogleSignIn(1.0.2) 2/Temp/StagingArea/android-libraries/animated-vector-drawable-25.3.1/res" -S "/Users/YudizSolutions/Documents/Projects/GoogleSignIn(1.0.2) 2/Temp/StagingArea/android-libraries/appcompat-v7-25.3.1/res" -S "/Users/YudizSolutions/Documents/Projects/GoogleSignIn(1.0.2) 2/Temp/StagingArea/android-libraries/cardview-v7-25.3.1/res" -S "/Users/YudizSolutions/Documents/Projects/GoogleSignIn(1.0.2) 2/Temp/StagingArea/android-libraries/customtabs-25.3.1/res" -S "/Users/YudizSolutions/Documents/Projects/GoogleSignIn(1.0.2) 2/Temp/StagingArea/android-libraries/facebook-android-sdk-4.23.0/res" -S "/Users/YudizSolutions/Documents/Projects/GoogleSignIn(1.0.2) 2/Temp/StagingArea/android-libraries/facebook-android-wrapper-7.10.1/res" -S "/Users/YudizSolutions/Documents/Projects/GoogleSignIn(1.0.2) 2/Temp/StagingArea/android-libraries/google-signin-support-1.0.2/res" -S "/Users/YudizSolutions/Documents/Projects/GoogleSignIn(1.0.2) 2/Temp/StagingArea/android-libraries/play-services-auth-10.2.6/res" -S "/Users/YudizSolutions/Documents/Projects/GoogleSignIn(1.0.2) 2/Temp/StagingArea/android-libraries/play-services-auth-base-10.2.6/res" -S "/Users/YudizSolutions/Documents/Projects/GoogleSignIn(1.0.2) 2/Temp/StagingArea/android-libraries/play-services-base-10.2.6/res" -S "/Users/YudizSolutions/Documents/Projects/GoogleSignIn(1.0.2) 2/Temp/StagingArea/android-libraries/play-services-basement-10.2.6/res" -S "/Users/YudizSolutions/Documents/Projects/GoogleSignIn(1.0.2) 2/Temp/StagingArea/android-libraries/play-services-tasks-10.2.6/res" -S "/Users/YudizSolutions/Documents/Projects/GoogleSignIn(1.0.2) 2/Temp/StagingArea/android-libraries/support-core-ui-25.3.1/res" -S "/Users/YudizSolutions/Documents/Projects/GoogleSignIn(1.0.2) 2/Temp/StagingArea/android-libraries/support-core-utils-25.3.1/res" -S "/Users/YudizSolutions/Documents/Projects/GoogleSignIn(1.0.2) 2/Temp/StagingArea/android-libraries/support-fragment-25.3.1/res" -S "/Users/YudizSolutions/Documents/Projects/GoogleSignIn(1.0.2) 2/Temp/StagingArea/android-libraries/support-media-compat-25.3.1/res" -S "/Users/YudizSolutions/Documents/Projects/GoogleSignIn(1.0.2) 2/Temp/StagingArea/android-libraries/support-v4-25.3.1/res" -S "/Users/YudizSolutions/Documents/Projects/GoogleSignIn(1.0.2) 2/Temp/StagingArea/android-libraries/support-vector-drawable-25.3.1/res"

stderr[
/Users/YudizSolutions/Documents/Projects/GoogleSignIn(1.0.2) 2/Temp/StagingArea/android-libraries/appcompat-v7-25.3.1/res/layout/abc_action_mode_close_item_material.xml:17: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginEnd from
/Users/YudizSolutions/Documents/Projects/GoogleSignIn(1.0.2) 2/Temp/StagingArea/android-libraries/appcompat-v7-25.3.1/res/layout/abc_action_mode_close_item_material.xml:17: note: removing attribute http://schemas.android.com/apk/res/android:paddingStart from
/Users/YudizSolutions/Documents/Projects/GoogleSignIn(1.0.2) 2/Temp/StagingArea/android-libraries/appcompat-v7-25.3.1/res/layout/abc_action_mode_close_item_material.xml: note: using v17 attributes; synthesizing resource com.yudiz.authdemo:layout/abc_action_mode_close_item_material for configuration v17.
/Users/YudizSolutions/Documents/Projects/GoogleSignIn(1.0.2) 2/Temp/StagingArea/android-libraries/appcompat-v7-25.3.1/res/layout/abc_alert_dialog_button_bar_material.xml:18: note: removing attribute http://schemas.android.com/apk/res/android:scrollIndicators from
/Users/YudizSolutions/Documents/Projects/GoogleSignIn(1.0.2) 2/Temp/StagingArea/android-libraries/appcompat-v7-25.3.1/res/layout/abc_alert_dialog_button_bar_material.xml:26: note: removing attribute http://schemas.android.com/apk/res/android:layoutDirection from <android.support.v7.widget.ButtonBarLayout>
/Users/YudizSolutions/Documents/Projects/GoogleSignIn(1.0.2) 2/Temp/StagingArea/android-libraries/appcompat-v7-25.3.1/res/layout/abc_alert_dialog_button_bar_material.xml: note: using v17 attributes; synthesizing resource com.yudiz.authdemo:layout/abc_alert_dialog_button_bar_material for configuration v17.
/Users/YudizSolutions/Documents/Projects/GoogleSignIn(1.0.2) 2/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 <android.support.v7.widget.DialogTitle>
/Users/YudizSolutions/Documents/Projects/GoogleSignIn(1.0.2) 2/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
/Users/YudizSolutions/Documents/Projects/GoogleSignIn(1.0.2) 2/Temp/StagingArea/android-libraries/appcompat-v7-25.3.1/res/layout/abc_alert_dialog_title_material.xml: note: using v17 attributes; synthesizing resource com.yudiz.authdemo:layout/abc_alert_dialog_title_material for configuration v17.
/Users/YudizSolutions/Documents/Projects/GoogleSignIn(1.0.2) 2/Temp/StagingArea/android-libraries/appcompat-v7-25.3.1/res/layout/abc_dialog_title_material.xml:29: note: removing attribute http://schemas.android.com/apk/res/android:textAlignment from
/Users/YudizSolutions/Documents/Projects/GoogleSignIn(1.0.2) 2/Temp/StagingArea/android-libraries/appcompat-v7-25.3.1/res/layout/abc_dialog_title_material.xml: note: using v17 attributes; synthesizing resource com.yudiz.authdemo:layout/abc_dialog_title_material for configuration v17.
/Users/YudizSolutions/Documents/Projects/GoogleSignIn(1.0.2) 2/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
/Users/YudizSolutions/Documents/Projects/GoogleSignIn(1.0.2) 2/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.yudiz.authdemo:layout/abc_popup_menu_header_item_layout for configuration v17.
/Users/YudizSolutions/Documents/Projects/GoogleSignIn(1.0.2) 2/Temp/StagingArea/android-libraries/appcompat-v7-25.3.1/res/layout/abc_popup_menu_item_layout.xml:59: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from
/Users/YudizSolutions/Documents/Projects/GoogleSignIn(1.0.2) 2/Temp/StagingArea/android-libraries/appcompat-v7-25.3.1/res/layout/abc_popup_menu_item_layout.xml: note: using v17 attributes; synthesizing resource com.yudiz.authdemo:layout/abc_popup_menu_item_layout for configuration v17.
/Users/YudizSolutions/Documents/Projects/GoogleSignIn(1.0.2) 2/Temp/StagingArea/android-libraries/appcompat-v7-25.3.1/res/layout/abc_screen_toolbar.xml:27: note: removing attribute http://schemas.android.com/apk/res/android:touchscreenBlocksFocus from <android.support.v7.widget.ActionBarContainer>
/Users/YudizSolutions/Documents/Projects/GoogleSignIn(1.0.2) 2/Temp/StagingArea/android-libraries/appcompat-v7-25.3.1/res/layout/abc_screen_toolbar.xml: note: using v21 attributes; synthesizing resource com.yudiz.authdemo:layout/abc_screen_toolbar for configuration v21.
/Users/YudizSolutions/Documents/Projects/GoogleSignIn(1.0.2) 2/Temp/StagingArea/android-libraries/appcompat-v7-25.3.1/res/layout/abc_search_view.xml:47: note: removing attribute http://schemas.android.com/apk/res/android:layoutDirection from
/Users/YudizSolutions/Documents/Projects/GoogleSignIn(1.0.2) 2/Temp/StagingArea/android-libraries/appcompat-v7-25.3.1/res/layout/abc_search_view.xml: note: using v17 attributes; synthesizing resource com.yudiz.authdemo:layout/abc_search_view for configuration v17.
/Users/YudizSolutions/Documents/Projects/GoogleSignIn(1.0.2) 2/Temp/StagingArea/android-libraries/appcompat-v7-25.3.1/res/layout/abc_select_dialog_material.xml:23: note: removing attribute http://schemas.android.com/apk/res/android:textAlignment from
/Users/YudizSolutions/Documents/Projects/GoogleSignIn(1.0.2) 2/Temp/StagingArea/android-libraries/appcompat-v7-25.3.1/res/layout/abc_select_dialog_material.xml: note: using v17 attributes; synthesizing resource com.yudiz.authdemo:layout/abc_select_dialog_material for configuration v17.
/Users/YudizSolutions/Documents/Projects/GoogleSignIn(1.0.2) 2/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
/Users/YudizSolutions/Documents/Projects/GoogleSignIn(1.0.2) 2/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
/Users/YudizSolutions/Documents/Projects/GoogleSignIn(1.0.2) 2/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.yudiz.authdemo:layout/com_facebook_device_auth_dialog_fragment for configuration v17.
/Users/YudizSolutions/Documents/Projects/GoogleSignIn(1.0.2) 2/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
/Users/YudizSolutions/Documents/Projects/GoogleSignIn(1.0.2) 2/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
/Users/YudizSolutions/Documents/Projects/GoogleSignIn(1.0.2) 2/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
/Users/YudizSolutions/Documents/Projects/GoogleSignIn(1.0.2) 2/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
/Users/YudizSolutions/Documents/Projects/GoogleSignIn(1.0.2) 2/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 <android.support.v7.widget.AppCompatImageView>
/Users/YudizSolutions/Documents/Projects/GoogleSignIn(1.0.2) 2/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.yudiz.authdemo:layout/com_facebook_smart_device_dialog_fragment for configuration v17.
/Users/YudizSolutions/Documents/Projects/GoogleSignIn(1.0.2) 2/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
/Users/YudizSolutions/Documents/Projects/GoogleSignIn(1.0.2) 2/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
/Users/YudizSolutions/Documents/Projects/GoogleSignIn(1.0.2) 2/Temp/StagingArea/android-libraries/appcompat-v7-25.3.1/res/layout/notification_action.xml: note: using v17 attributes; synthesizing resource com.yudiz.authdemo:layout/notification_action for configuration v17.
/Users/YudizSolutions/Documents/Projects/GoogleSignIn(1.0.2) 2/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
/Users/YudizSolutions/Documents/Projects/GoogleSignIn(1.0.2) 2/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
/Users/YudizSolutions/Documents/Projects/GoogleSignIn(1.0.2) 2/Temp/StagingArea/android-libraries/appcompat-v7-25.3.1/res/layout/notification_action_tombstone.xml: note: using v17 attributes; synthesizing resource com.yudiz.authdemo:layout/notification_action_tombstone for configuration v17.
/Users/YudizSolutions/Documents/Projects/GoogleSignIn(1.0.2) 2/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
/Users/YudizSolutions/Documents/Projects/GoogleSignIn(1.0.2) 2/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
/Users/YudizSolutions/Documents/Projects/GoogleSignIn(1.0.2) 2/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
/Users/YudizSolutions/Documents/Projects/GoogleSignIn(1.0.2) 2/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
/Users/YudizSolutions/Documents/Projects/GoogleSignIn(1.0.2) 2/Temp/StagingArea/android-libraries/appcompat-v7-25.3.1/res/layout-v11/notification_template_big_media.xml: note: using v17 attributes; synthesizing resource com.yudiz.authdemo:layout/notification_template_big_media for configuration v17.
/Users/YudizSolutions/Documents/Projects/GoogleSignIn(1.0.2) 2/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
/Users/YudizSolutions/Documents/Projects/GoogleSignIn(1.0.2) 2/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
/Users/YudizSolutions/Documents/Projects/GoogleSignIn(1.0.2) 2/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
/Users/YudizSolutions/Documents/Projects/GoogleSignIn(1.0.2) 2/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

@storybell
Copy link

storybell commented May 25, 2018

same thing happing in my project...any fixes???

Edit : Solve after doing following

  1. Delete facebook plugins
  2. Delete Admob Plugins and all AARs
  • Delete all the files in the plugins folder..both Android and iOS
  1. Add Facebook
  2. Add Admob
  3. Add google sign-in
  4. Asset -> Play services resolver -> Android Resolver -> Force Resolve
  5. Done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants