• 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
Question by dgknrdm · Jul 18, 2018 at 06:31 AM · android buildfacebook

[SOLVED]Android Build Repackage Error(After Facebook Integration)

Hi, I'm trying to integrate Facebook Login, and when I try to build, I get this error. This didn't happen before adding Facebook script. Could you tell me what am I doing wrong? Looks like there are other users experiencing same issue but couldn't find an answer. Any help would be appreciated. Thanks in advance.

 CommandInvokationFailure: Failed to re-package resources.
 D:\Users\MONSTER\AppData\Local\Android\sdk\build-tools\25.0.1\aapt.exe package --auto-add-overlay -v -f -m -J "gen" -M "AndroidManifest.xml" -S "res" -I "D:/Users/MONSTER/AppData/Local/Android/sdk\platforms\android-28\android.jar" -F bin/resources.ap_ --extra-packages android.support.graphics.drawable.animated:android.support.v7.appcompat:android.support.v7.cardview:android.support.customtabs:android.support.compat:android.support.coreui:android.support.coreutils:android.support.fragment:android.support.mediacompat:android.support.v4:android.support.graphics.drawable:com.facebook.android:com.facebook.applinks:com.facebook.common:com.facebook.core:com.facebook.login:com.facebook.messenger:com.facebook.places:com.facebook.share:com.unity3d.ads -S "C:\Users\MONSTER\Documents\UnityProjects\Submarine3D\Temp\StagingArea\android-libraries\com.android.support.animated-vector-drawable-25.3.1\res" -S "C:\Users\MONSTER\Documents\UnityProjects\Submarine3D\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res" -S "C:\Users\MONSTER\Documents\UnityProjects\Submarine3D\Temp\StagingArea\android-libraries\com.android.support.cardview-v7-25.3.1\res" -S "C:\Users\MONSTER\Documents\UnityProjects\Submarine3D\Temp\StagingArea\android-libraries\com.android.support.customtabs-25.3.1\res" -S "C:\Users\MONSTER\Documents\UnityProjects\Submarine3D\Temp\StagingArea\android-libraries\com.android.support.support-compat-25.3.1\res" -S "C:\Users\MONSTER\Documents\UnityProjects\Submarine3D\Temp\StagingArea\android-libraries\com.android.support.support-core-ui-25.3.1\res" -S "C:\Users\MONSTER\Documents\UnityProjects\Submarine3D\Temp\StagingArea\android-libraries\com.android.support.support-core-utils-25.3.1\res" -S "C:\Users\MONSTER\Documents\UnityProjects\Submarine3D\Temp\StagingArea\android-libraries\com.android.support.support-fragment-25.3.1\res" -S "C:\Users\MONSTER\Documents\UnityProjects\Submarine3D\Temp\StagingArea\android-libraries\com.android.support.support-media-compat-25.3.1\res" -S "C:\Users\MONSTER\Documents\UnityProjects\Submarine3D\Temp\StagingArea\android-libraries\com.android.support.support-v4-25.3.1\res" -S "C:\Users\MONSTER\Documents\UnityProjects\Submarine3D\Temp\StagingArea\android-libraries\com.android.support.support-vector-drawable-25.3.1\res" -S "C:\Users\MONSTER\Documents\UnityProjects\Submarine3D\Temp\StagingArea\android-libraries\facebook-android-wrapper-7.12.1\res" -S "C:\Users\MONSTER\Documents\UnityProjects\Submarine3D\Temp\StagingArea\android-libraries\facebook-common\res" -S "C:\Users\MONSTER\Documents\UnityProjects\Submarine3D\Temp\StagingArea\android-libraries\facebook-login\res" -S "C:\Users\MONSTER\Documents\UnityProjects\Submarine3D\Temp\StagingArea\android-libraries\facebook-messenger\res" -S "C:\Users\MONSTER\Documents\UnityProjects\Submarine3D\Temp\StagingArea\android-libraries\facebook-share\res" -S "C:\Users\MONSTER\Documents\UnityProjects\Submarine3D\Temp\StagingArea\android-libraries\UnityAds\res"
 
 stderr[
 C:\Users\MONSTER\Documents\UnityProjects\Submarine3D\Temp\StagingArea\android-libraries\com.android.support.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 <ImageView>
 C:\Users\MONSTER\Documents\UnityProjects\Submarine3D\Temp\StagingArea\android-libraries\com.android.support.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 <ImageView>
 C:\Users\MONSTER\Documents\UnityProjects\Submarine3D\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res\layout\abc_action_mode_close_item_material.xml: note: using v17 attributes; synthesizing resource com.dgknrdm.FalconRush:layout/abc_action_mode_close_item_material for configuration v17.
 C:\Users\MONSTER\Documents\UnityProjects\Submarine3D\Temp\StagingArea\android-libraries\com.android.support.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 <ScrollView>
 C:\Users\MONSTER\Documents\UnityProjects\Submarine3D\Temp\StagingArea\android-libraries\com.android.support.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>
 C:\Users\MONSTER\Documents\UnityProjects\Submarine3D\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res\layout\abc_alert_dialog_button_bar_material.xml: note: using v17 attributes; synthesizing resource com.dgknrdm.FalconRush:layout/abc_alert_dialog_button_bar_material for configuration v17.
 C:\Users\MONSTER\Documents\UnityProjects\Submarine3D\Temp\StagingArea\android-libraries\com.android.support.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>
 C:\Users\MONSTER\Documents\UnityProjects\Submarine3D\Temp\StagingArea\android-libraries\com.android.support.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 <ImageView>
 C:\Users\MONSTER\Documents\UnityProjects\Submarine3D\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res\layout\abc_alert_dialog_title_material.xml: note: using v17 attributes; synthesizing resource com.dgknrdm.FalconRush:layout/abc_alert_dialog_title_material for configuration v17.
 C:\Users\MONSTER\Documents\UnityProjects\Submarine3D\Temp\StagingArea\android-libraries\com.android.support.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 <TextView>
 C:\Users\MONSTER\Documents\UnityProjects\Submarine3D\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res\layout\abc_dialog_title_material.xml: note: using v17 attributes; synthesizing resource com.dgknrdm.FalconRush:layout/abc_dialog_title_material for configuration v17.
 C:\Users\MONSTER\Documents\UnityProjects\Submarine3D\Temp\StagingArea\android-libraries\com.android.support.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 <TextView>
 C:\Users\MONSTER\Documents\UnityProjects\Submarine3D\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res\layout\abc_popup_menu_header_item_layout.xml: note: using v17 attributes; synthesizing resource com.dgknrdm.FalconRush:layout/abc_popup_menu_header_item_layout for configuration v17.
 C:\Users\MONSTER\Documents\UnityProjects\Submarine3D\Temp\StagingArea\android-libraries\com.android.support.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 <ImageView>
 C:\Users\MONSTER\Documents\UnityProjects\Submarine3D\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res\layout\abc_popup_menu_item_layout.xml: note: using v17 attributes; synthesizing resource com.dgknrdm.FalconRush:layout/abc_popup_menu_item_layout for configuration v17.
 C:\Users\MONSTER\Documents\UnityProjects\Submarine3D\Temp\StagingArea\android-libraries\com.android.support.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>
 C:\Users\MONSTER\Documents\UnityProjects\Submarine3D\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res\layout\abc_screen_toolbar.xml: note: using v21 attributes; synthesizing resource com.dgknrdm.FalconRush:layout/abc_screen_toolbar for configuration v21.
 C:\Users\MONSTER\Documents\UnityProjects\Submarine3D\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res\layout\abc_search_view.xml:47: note: removing attribute http://schemas.android.com/apk/res/android:layoutDirection from <LinearLayout>
 C:\Users\MONSTER\Documents\UnityProjects\Submarine3D\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res\layout\abc_search_view.xml: note: using v17 attributes; synthesizing resource com.dgknrdm.FalconRush:layout/abc_search_view for configuration v17.
 C:\Users\MONSTER\Documents\UnityProjects\Submarine3D\Temp\StagingArea\android-libraries\com.android.support.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 <view>
 C:\Users\MONSTER\Documents\UnityProjects\Submarine3D\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res\layout\abc_select_dialog_material.xml: note: using v17 attributes; synthesizing resource com.dgknrdm.FalconRush:layout/abc_select_dialog_material for configuration v17.
 C:\Users\MONSTER\Documents\UnityProjects\Submarine3D\Temp\StagingArea\android-libraries\facebook-common\res\layout\com_facebook_device_auth_dialog_fragment.xml:80: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginEnd from <TextView>
 C:\Users\MONSTER\Documents\UnityProjects\Submarine3D\Temp\StagingArea\android-libraries\facebook-common\res\layout\com_facebook_device_auth_dialog_fragment.xml:80: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from <TextView>
 C:\Users\MONSTER\Documents\UnityProjects\Submarine3D\Temp\StagingArea\android-libraries\facebook-common\res\layout\com_facebook_device_auth_dialog_fragment.xml: note: using v17 attributes; synthesizing resource com.dgknrdm.FalconRush:layout/com_facebook_device_auth_dialog_fragment for configuration v17.
 C:\Users\MONSTER\Documents\UnityProjects\Submarine3D\Temp\StagingArea\android-libraries\facebook-common\res\layout\com_facebook_smart_device_dialog_fragment.xml:94: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from <TextView>
 C:\Users\MONSTER\Documents\UnityProjects\Submarine3D\Temp\StagingArea\android-libraries\facebook-common\res\layout\com_facebook_smart_device_dialog_fragment.xml:94: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginEnd from <TextView>
 C:\Users\MONSTER\Documents\UnityProjects\Submarine3D\Temp\StagingArea\android-libraries\facebook-common\res\layout\com_facebook_smart_device_dialog_fragment.xml:83: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from <TextView>
 C:\Users\MONSTER\Documents\UnityProjects\Submarine3D\Temp\StagingArea\android-libraries\facebook-common\res\layout\com_facebook_smart_device_dialog_fragment.xml:83: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginEnd from <TextView>
 C:\Users\MONSTER\Documents\UnityProjects\Submarine3D\Temp\StagingArea\android-libraries\facebook-common\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>
 C:\Users\MONSTER\Documents\UnityProjects\Submarine3D\Temp\StagingArea\android-libraries\facebook-common\res\layout\com_facebook_smart_device_dialog_fragment.xml: note: using v17 attributes; synthesizing resource com.dgknrdm.FalconRush:layout/com_facebook_smart_device_dialog_fragment for configuration v17.
 C:\Users\MONSTER\Documents\UnityProjects\Submarine3D\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res\layout\notification_action.xml:17: note: removing attribute http://schemas.android.com/apk/res/android:paddingStart from <LinearLayout>
 C:\Users\MONSTER\Documents\UnityProjects\Submarine3D\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res\layout\notification_action.xml:32: note: removing attribute http://schemas.android.com/apk/res/android:paddingStart from <TextView>
 C:\Users\MONSTER\Documents\UnityProjects\Submarine3D\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res\layout\notification_action.xml: note: using v17 attributes; synthesizing resource com.dgknrdm.FalconRush:layout/notification_action for configuration v17.
 C:\Users\MONSTER\Documents\UnityProjects\Submarine3D\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res\layout\notification_action_tombstone.xml:18: note: removing attribute http://schemas.android.com/apk/res/android:paddingStart from <LinearLayout>
 C:\Users\MONSTER\Documents\UnityProjects\Submarine3D\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res\layout\notification_action_tombstone.xml:37: note: removing attribute http://schemas.android.com/apk/res/android:paddingStart from <TextView>
 C:\Users\MONSTER\Documents\UnityProjects\Submarine3D\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res\layout\notification_action_tombstone.xml: note: using v17 attributes; synthesizing resource com.dgknrdm.FalconRush:layout/notification_action_tombstone for configuration v17.
 C:\Users\MONSTER\Documents\UnityProjects\Submarine3D\Temp\StagingArea\android-libraries\com.android.support.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 <LinearLayout>
 C:\Users\MONSTER\Documents\UnityProjects\Submarine3D\Temp\StagingArea\android-libraries\com.android.support.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 <include>
 C:\Users\MONSTER\Documents\UnityProjects\Submarine3D\Temp\StagingArea\android-libraries\com.android.support.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 <include>
 C:\Users\MONSTER\Documents\UnityProjects\Submarine3D\Temp\StagingArea\android-libraries\com.android.support.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 <include>
 C:\Users\MONSTER\Documents\UnityProjects\Submarine3D\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res\layout-v11\notification_template_big_media.xml: note: using v17 attributes; synthesizing resource com.dgknrdm.FalconRush:layout/notification_template_big_media for configuration v17.
 C:\Users\MONSTER\Documents\UnityProjects\Submarine3D\Temp\StagingArea\android-libraries\com.android.support.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 <LinearLayout>
 C:\Users\MONSTER\Documents\UnityProjects\Submarine3D\Temp\StagingArea\android-libraries\com.android.support.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 <LinearLayout>
 C:\Users\MONSTER\Documents\UnityProjects\Submarine3D\Temp\StagingArea\android-libraries\com.android.support.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 <LinearLayout>
 C:\Users\MONSTER\Documents\UnityProjects\Submarine3D\Temp\StagingArea\android-libraries\com.android.support.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 <FrameLayout>
 C:\Users\MONSTER\Documents\UnityProjects\Submarine3D\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res\layout-v11\notification_template_big_media_custom.xml:45: note: removing attribute http://schemas.android.com/apk/res/and<message truncated>
Comment

People who like this

0 Show 0
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

1 Reply

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by dgknrdm · Jul 17, 2018 at 03:32 PM

Changed Build System to "Gradle" and it got fixed. I don't know why but it's working now.

Comment
Swapan01

People who like this

1 Show 0 · 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.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

90 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

how do i get OpenSSL for android build facebook setting? 2 Answers

UnityでfacebookSDKの導入について 0 Answers

Unity 2018 and Facebook SDK return cancelled = true Android 9 and 19 0 Answers

Cannot build for android with facebook sdk -- Unity 5.4.0f3 1 Answer

failed to re-package resources after importing facebook-unity-sdk-7.6.0 0 Answers


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