Another Failed to re-package resources build error for Android

I know you all see a bunch of these every day, and I wish I could refer to another example and fix this. I’ve tried that, but I just wish these build errors were more readable.

I’m using these plugins:
Facebook, OneSignal, PlayFab. All working fine.

I added VoxelBuster’s “Cross platform native toolkit” and couldn’t build since then. There’s obviously a conflict, and probably with google play services, but I’m not sure what to keep, delete or modify :frowning:

CommandInvokationFailure: Failed to re-package resources. See the Console for details.
C:\Android\build-tools\23.0.2\aapt.exe package --auto-add-overlay -v -f -m -J gen -M AndroidManifest.xml -S "res" -I "C:/Android\platforms\android-23\android.jar" -F bin/resources.ap_ --extra-packages android.support.v7.cardview:com.voxelbusters.utility:com.facebook:com.facebook.android:com.unity3d.ads.android:com.google.android.gms:com.voxelbusters.androidnativeplugin:com.onesignal:com.onesignal.onesignalsdk:com.google.android.gms.base:com.google.android.gms:com.google.android.gms.gcm:com.google.android.gms.location:android.support.v4:android.support.v4:com.voxelbusters.utility -S "C:\Users\xxxxxx\Documents\BitbucketProjects\ProjectName\Temp\StagingArea\android-libraries\cardview-v7-23.1.1\res" -S "C:\Users\xxxxxx\Documents\BitbucketProjects\ProjectName\Temp\StagingArea\android-libraries\facebook-android-sdk-4.9.0\res" -S "C:\Users\xxxxxx\Documents\BitbucketProjects\ProjectName\Temp\StagingArea\android-libraries\facebook-android-wrapper-7.4.0\res" -S "C:\Users\xxxxxx\Documents\BitbucketProjects\ProjectName\Temp\StagingArea\android-libraries\fyber-unityads-1.5.6-r1\res" -S "C:\Users\xxxxxx\Documents\BitbucketProjects\ProjectName\Temp\StagingArea\android-libraries\google-play-services_lib\res" -S "C:\Users\xxxxxx\Documents\BitbucketProjects\ProjectName\Temp\StagingArea\android-libraries

ative_plugins_lib\res" -S “C:\Users\xxxxxx\Documents\BitbucketProjects\ProjectName\Temp\StagingArea\android-libraries\onesignal-unity\res” -S “C:\Users\xxxxxx\Documents\BitbucketProjects\ProjectName\Temp\StagingArea\android-libraries\OneSignalConfig\res” -S “C:\Users\xxxxxx\Documents\BitbucketProjects\ProjectName\Temp\StagingArea\android-libraries\play-services-base-8.3.0\res” -S “C:\Users\xxxxxx\Documents\BitbucketProjects\ProjectName\Temp\StagingArea\android-libraries\play-services-basement-8.3.0\res” -S “C:\Users\xxxxxx\Documents\BitbucketProjects\ProjectName\Temp\StagingArea\android-libraries\play-services-gcm-8.3.0\res” -S “C:\Users\xxxxxx\Documents\BitbucketProjects\ProjectName\Temp\StagingArea\android-libraries\play-services-location-8.3.0\res” -S “C:\Users\xxxxxx\Documents\BitbucketProjects\ProjectName\Temp\StagingArea\android-libraries\support-v4-23.1.1\res”

stderr[
C:\Users\xxxxxx\Documents\BitbucketProjects\ProjectName\Temp\StagingArea\android-libraries\facebook-android-sdk-4.9.0\res\layout\com_facebook_device_auth_dialog_fragment.xml:117: note: removing attribute http://schemas.android.com/apk/res/android:fontFamily from <Button>
C:\Users\xxxxxx\Documents\BitbucketProjects\ProjectName\Temp\StagingArea\android-libraries\facebook-android-sdk-4.9.0\res\layout\com_facebook_device_auth_dialog_fragment.xml:88: note: removing attribute http://schemas.android.com/apk/res/android:fontFamily from <TextView>
C:\Users\xxxxxx\Documents\BitbucketProjects\ProjectName\Temp\StagingArea\android-libraries\facebook-android-sdk-4.9.0\res\layout\com_facebook_device_auth_dialog_fragment.xml:70: note: removing attribute http://schemas.android.com/apk/res/android:fontFamily from <TextView>
C:\Users\xxxxxx\Documents\BitbucketProjects\ProjectName\Temp\StagingArea\android-libraries\facebook-android-sdk-4.9.0\res\layout\com_facebook_device_auth_dialog_fragment.xml:56: note: removing attribute http://schemas.android.com/apk/res/android:fontFamily from <TextView>
C:\Users\xxxxxx\Documents\BitbucketProjects\ProjectName\Temp\StagingArea\android-libraries\facebook-android-sdk-4.9.0\res\layout\com_facebook_device_auth_dialog_fragment.xml: note: using v16 attributes; synthesizing resource com.CompanyName.ProjectName:layout/com_facebook_device_auth_dialog_fragment for configuration v16.
C:\Users\xxxxxx\Documents\BitbucketProjects\ProjectName\Temp\StagingArea\android-libraries\google-play-services_lib\res\layout\place_autocomplete_item_powered_by_google.xml:28: note: removing attribute http://schemas.android.com/apk/res/android:layout_toEndOf from <ImageView>
C:\Users\xxxxxx\Documents\BitbucketProjects\ProjectName\Temp\StagingArea\android-libraries\google-play-services_lib\res\layout\place_autocomplete_item_powered_by_google.xml:28: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from <ImageView>
C:\Users\xxxxxx\Documents\BitbucketProjects\ProjectName\Temp\StagingArea\android-libraries\google-play-services_lib\res\layout\place_autocomplete_item_powered_by_google.xml:8: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from <View>
C:\Users\xxxxxx\Documents\BitbucketProjects\ProjectName\Temp\StagingArea\android-libraries\google-play-services_lib\res\layout\place_autocomplete_item_powered_by_google.xml: note: using v17 attributes; synthesizing resource com.CompanyName.ProjectName:layout/place_autocomplete_item_powered_by_google for configuration v17.
C:\Users\xxxxxx\Documents\BitbucketProjects\ProjectName\Temp\StagingArea\android-libraries\google-play-services_lib\res\layout\place_autocomplete_item_prediction.xml:52: note: removing attribute http://schemas.android.com/apk/res/android:layout_toEndOf from <TextView>
C:\Users\xxxxxx\Documents\BitbucketProjects\ProjectName\Temp\StagingArea\android-libraries\google-play-services_lib\res\layout\place_autocomplete_item_prediction.xml:35: note: removing attribute http://schemas.android.com/apk/res/android:layout_toEndOf from <TextView>
C:\Users\xxxxxx\Documents\BitbucketProjects\ProjectName\Temp\StagingArea\android-libraries\google-play-services_lib\res\layout\place_autocomplete_item_prediction.xml:8: note: removing attribute http://schemas.android.com/apk/res/android:layout_alignParentStart from <include>
C:\Users\xxxxxx\Documents\BitbucketProjects\ProjectName\Temp\StagingArea\android-libraries\google-play-services_lib\res\layout\place_autocomplete_item_prediction.xml: note: using v17 attributes; synthesizing resource com.CompanyName.ProjectName:layout/place_autocomplete_item_prediction for configuration v17.
C:\Users\xxxxxx\Documents\BitbucketProjects\ProjectName\Temp\StagingArea\android-libraries\google-play-services_lib\res\layout\place_autocomplete_progress.xml:2: note: removing attribute http://schemas.android.com/apk/res/android:indeterminateTint from <ProgressBar>
C:\Users\xxxxxx\Documents\BitbucketProjects\ProjectName\Temp\StagingArea\android-libraries\google-play-services_lib\res\layout\place_autocomplete_progress.xml:2: note: removing attribute http://schemas.android.com/apk/res/android:indeterminateTintMode from <ProgressBar>
C:\Users\xxxxxx\Documents\BitbucketProjects\ProjectName\Temp\StagingArea\android-libraries\google-play-services_lib\res\layout\place_autocomplete_progress.xml: note: using v21 attributes; synthesizing resource com.CompanyName.ProjectName:layout/place_autocomplete_progress for configuration v21.
C:\Users\xxxxxx\Documents\BitbucketProjects\ProjectName\Temp\StagingArea\android-libraries\fyber-unityads-1.5.6-r1\res\layout\unityads_button_audio_toggle.xml:2: note: removing attribute http://schemas.android.com/apk/res/android:paddingStart from <RelativeLayout>
C:\Users\xxxxxx\Documents\BitbucketProjects\ProjectName\Temp\StagingArea\android-libraries\fyber-unityads-1.5.6-r1\res\layout\unityads_button_audio_toggle.xml:61: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from <TextView>
C:\Users\xxxxxx\Documents\BitbucketProjects\ProjectName\Temp\StagingArea\android-libraries\fyber-unityads-1.5.6-r1\res\layout\unityads_button_audio_toggle.xml:27: note: removing attribute http://schemas.android.com/apk/res/android:layout_alignParentStart from <RelativeLayout>
C:\Users\xxxxxx\Documents\BitbucketProjects\ProjectName\Temp\StagingArea\android-libraries\fyber-unityads-1.5.6-r1\res\layout\unityads_button_audio_toggle.xml:27: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from <RelativeLayout>
C:\Users\xxxxxx\Documents\BitbucketProjects\ProjectName\Temp\StagingArea\android-libraries\fyber-unityads-1.5.6-r1\res\layout\unityads_button_audio_toggle.xml:52: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from <View>
C:\Users\xxxxxx\Documents\BitbucketProjects\ProjectName\Temp\StagingArea\android-libraries\fyber-unityads-1.5.6-r1\res\layout\unityads_button_audio_toggle.xml:44: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from <View>
C:\Users\xxxxxx\Documents\BitbucketProjects\ProjectName\Temp\StagingArea\android-libraries\fyber-unityads-1.5.6-r1\res\layout\unityads_button_audio_toggle.xml:19: note: removing attribute http://schemas.android.com/apk/res/android:layout_alignParentStart from <View>
C:\Users\xxxxxx\Documents\BitbucketProjects\ProjectName\Temp\StagingArea\android-libraries\fyber-unityads-1.5.6-r1\res\layout\unityads_button_audio_toggle.xml:10: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from <View>
C:\Users\xxxxxx\Documents\BitbucketProjects\ProjectName\Temp\StagingArea\android-libraries\fyber-unityads-1.5.6-r1\res\layout\unityads_button_audio_toggle.xml: note: using v17 attributes; synthesizing resource com.CompanyName.ProjectName:layout/unityads_button_audio_toggle for configuration v17.
C:\Users\xxxxxx\Documents\BitbucketProjects\ProjectName\Temp\StagingArea\android-libraries\fyber-unityads-1.5.6-r1\res\layout\unityads_button_pause.xml:8: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from <View>
C:\Users\xxxxxx\Documents\BitbucketProjects\ProjectName\Temp\StagingArea\android-libraries\fyber-unityads-1.5.6-r1\res\layout\unityads_button_pause.xml: note: using v17 attributes; synthesizing resource com.CompanyName.ProjectName:layout/unityads_button_pause for configuration v17.
C:\Users\xxxxxx\Documents\BitbucketProjects\ProjectName\Temp\StagingArea\android-libraries\fyber-unityads-1.5.6-r1\res\layout\unityads_view_video_play.xml:92: note: removing attribute http://schemas.android.com/apk/res/android:layout_alignParentStart from <include>
C:\Users\xxxxxx\Documents\BitbucketProjects\ProjectName\Temp\StagingArea\android-libraries\fyber-unityads-1.5.6-r1\res\layout\unityads_view_video_play.xml:57: note: removing attribute http://schemas.android.com/apk/res/android:layout_alignParentEnd from <LinearLayout>
C:\Users\xxxxxx\Documents\BitbucketProjects\ProjectName\Temp\StagingArea\android-libraries\fyber-unityads-1.5.6-r1\res\layout\unityads_view_video_play.xml:57: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginEnd from <LinearLayout>
C:\Users\xxxxxx\Documents\BitbucketProjects\ProjectName\Temp\StagingArea\android-libraries\fyber-unityads-1.5.6-r1\res\layout\unityads_view_video_play.xml:44: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginEnd from <TextView>
C:\Users\xxxxxx\Documents\BitbucketProjects\ProjectName\Temp\StagingArea\android-libraries\fyber-unityads-1.5.6-r1\res\layout\unityads_view_video_play.xml:29: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from <TextView>
C:\Users\xxxxxx\Documents\BitbucketProjects\ProjectName\Temp\StagingArea\android-libraries\fyber-unityads-1.5.6-r1\res\layout\unityads_view_video_play.xml: note: using v17 attributes; synthesizing resource com.CompanyName.ProjectName:layout/unityads_view_video_play for configuration v17.
C:\Users\xxxxxx\Documents\BitbucketProjects\ProjectName\Temp\StagingArea\android-libraries\google-play-services_lib\res\values\base_attrs.xml:11: error: Attribute "buttonSize" has already been defined

C:\Users\xxxxxx\Documents\BitbucketProjects\ProjectName\Temp\StagingArea\android-libraries\google-play-services_lib\res\values\base_attrs.xml:16: error: Attribute "colorScheme" has already been defined

C:\Users\xxxxxx\Documents\BitbucketProjects\ProjectName\Temp\StagingArea\android-libraries\google-play-services_lib\res\values\base_attrs.xml:21: error: Attribute "scopeUris" has already been defined

C:\Users\xxxxxx\Documents\BitbucketProjects\ProjectName\Temp\StagingArea\android-libraries\google-play-services_lib\res\values\common_attrs.xml:13: error: Attribute "imageAspectRatioAdjust" has already been defined

C:\Users\xxxxxx\Documents\BitbucketProjects\ProjectName\Temp\StagingArea\android-libraries\google-play-services_lib\res\values\common_attrs.xml:22: error: Attribute "imageAspectRatio" has already been defined

C:\Users\xxxxxx\Documents\BitbucketProjects\ProjectName\Temp\StagingArea\android-libraries\google-play-services_lib\res\values\common_attrs.xml:27: error: Attribute "circleCrop" has already been defined

]
stdout[
Configurations:
 (default)

Files:
  AndroidManifest.xml
    Src: () AndroidManifest.xml

Resource Dirs:
Including resources from package: C:\Android\platforms\android-23\android.jar
applyFileOverlay for drawable
trying overlaySet Key=powered_by_google_dark.png
trying overlaySet Key=powered_by_google_light.png
trying overlaySet Key=common_full_open_on_phone.png
trying overlaySet Key=common_ic_googleplayservices.png
trying overlaySet Key=common_google_signin_btn_icon_dark.xml
trying overlaySet Key=common_google_signin_btn_icon_dark_disabled.9.png
trying overlaySet Key=common_google_signin_btn_icon_dark_focused.9.png
trying overlaySet Key=common_google_signin_btn_icon_dark_normal.9.png
trying overlaySet Key=common_google_signin_btn_icon_dark_pressed.9.png
trying overlaySet Key=common_google_signin_btn_icon_light.xml
trying overlaySet Key=common_google_signin_btn_icon_light_disabled.9.png
trying overlaySet Key=common_google_signin_btn_icon_light_focused.9.png
trying overlaySet Key=common_google_signin_btn_icon_light_normal.9.png
trying overlaySet Key=common_google_signin_btn_icon_light_pressed.9.png
trying overlaySet Key=common_google_signin_btn_text_dark.xml
trying overlaySet Key=common_google_signin_btn_text_dark_disabled.9.png
trying overlaySet Key=common_google_signin_btn_text_dark_focused.9.png
trying overlaySet Key=common_google_signin_btn_text_dark_normal.9.png
trying overlaySet Key=common_google_signin_btn_text_dark_pressed.9.png
trying overlaySet Key=common_google_signin_btn_text_light.xml
trying overlaySet Key=common_google_signin_btn_text_light_disabled.9.png
trying overlaySet Key=common_google_signin_btn_text_light_focused.9.png
trying overlaySet Key=common_google_signin_btn_text_light_normal.9.png
trying overlaySet Key=common_google_signin_btn_text_light_pressed.9.png
trying overlaySet Key=common_plus_signin_btn_icon_dark.xml
trying overlaySet Key=common_plus_signin_btn_icon_dark_disabled.9.png
trying overlaySet Key=common_plus_signin_btn_icon_dark_focused.9.png
trying overlaySet Key=common_plus_signin_btn_icon_dark_normal.9.png
trying overlaySet Key=common_plus_signin_btn_icon_dark_pressed.9.png
trying overlaySet Key=common_plus_signin_btn_icon_light.xml
trying overlaySet Key=common_plus_signin_btn_icon_light_disabled.9.png
trying overlaySet Key=common_plus_signin_btn_icon_light_focused.9.png
trying overlaySet Key=common_plus_signin_btn_icon_light_normal.9.png
trying overlaySet Key=common_plus_signin_btn_icon_light_pressed.9.png
trying overlaySet Key=common_plus_signin_btn_text_dark.xml
trying overlaySet Key=common_plus_signin_btn_text_dark_disabled.9.png
trying overlaySet Key=common_plus_signin_btn_text_dark_focused.9.png
trying overlaySet Key=common_plus_signin_btn_text_dark_normal.9.png
trying overlaySet Key=common_plus_signin_btn_text_dark_pressed.9.png
trying overlaySet Key=common_plus_signin_btn_text_light.xml
trying overlaySet Key=common_plus_signin_btn_text_light_disabled.9.png
trying overlaySet Key=common_plus_signin_btn_text_light_focused.9.png
trying overlaySet Key=common_plus_signin_btn_text_light_normal.9.png
trying overlaySet Key=common_plus_signin_btn_text_light_pressed.9.png
trying overlaySet Key=ic_onesignal_large_icon_default.png
trying overlaySet Key=ic_stat_onesignal_default.png
trying overlaySet Key=app_icon_custom_coloured.png
trying overlaySet<message truncated>

Hello @psykojello2, I was also getting the same error. I just deleted all the .aar file from the Plugin/Android Folder and made few changes in the Android SDK Manager. Could you please take a screenshot of your sdk manager (specifically Tools, API Level 23 and up), so that I can check and will guide you.

Thank you…