Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 /
This question was closed Jun 16, 2016 at 07:33 AM by psykojello2 for the following reason:

The problem is not an issue anymore (resolved and forgot to close the thread)

avatar image
0
Question by psykojello2 · Mar 10, 2016 at 12:22 PM · android buildnative plugin

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 :(

 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\native_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>

Comment
Add comment · Show 3
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 SomehowLuke · Mar 17, 2016 at 03:04 PM 0
Share

I do have the same problem. But my error already occurs with the current onesignal sdk and facebook sdk.

avatar image psykojello2 SomehowLuke · Mar 19, 2016 at 11:02 PM 0
Share

With Onesignal and Facebook, I think they both use support-v4.

In your Unity project panel, search for "support", you should see at least 2 aar or jar files show up. Don't worry if there's a support-v7.

If there's more than one support-v4, keep the one with the higher version number and delete the other.

I kept support-v4-23.1.1 under the Facebook SD$$anonymous$$ folder and deleted the one under OneSignal.

Hope that works for you :)

avatar image SomehowLuke · Mar 20, 2016 at 09:49 AM 0
Share

Yes, thank you very much. Finally found the two classed. I knew the problem but could not find which class is making problems because facebool sdk has its own plugins folder.

1 Reply

  • Sort: 
avatar image
1

Answer by HardikMaru2001 · Jun 16, 2016 at 06:53 AM

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...

Comment
Add comment · Show 1 · 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
avatar image psykojello2 · Jun 16, 2016 at 07:32 AM 0
Share

Hi, I'm sorry, but I forgot to close out this thread. I did resolve this issue a few months ago. I don't remember what the fix was, but I think I had 2 references to Google play services.

Thanks for your help! I'll close out the question :)

Follow this Question

Answers Answers and Comments

37 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

Related Questions

unity 5.6.3 play-service aar moving file error 2 Answers

Trying to find the path to file inside an Android .apk 2 Answers

Export the project from Unity and opened by Android Studio 0 Answers

is android 7.1 supported by unity ? 1 Answer

apk unable to install see console ive tried everything please help am really frustrated 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