- Home /
Question by
MaceB · Feb 27, 2017 at 11:27 AM ·
errorbuild-errorerror messageandroid buildfailure
CommandInvokationFailure: Failed to re-package resources.
I'm trying to make an APK build for Android and I can't figure out how to fix this.
I was previously using Android SDK tools 23.0.3 but I updated it to 25.0.2. I added Plugins>Android>res>values>version.xml but that didn't work either. In Unity Preferences>External Tools, both SDK and JDK are there. Any help would be greatly appreciated!
CommandInvokationFailure: Failed to re-package resources.
/Users/me/Library/Android/sdk/build-tools/25.0.2/aapt package --auto-add-overlay -v -f -m -J gen -M AndroidManifest.xml -S "res" -I "/Users/me/Library/Android/sdk/platforms/android-24/android.jar" -F bin/resources.ap_ --extra-packages com.android.vending.billing:com.unity.purchasing.googleplay:android.support.v7.appcompat:com.unity.purchasing:com.google.android.gms.ads.impl:com.google.android.gms.ads:com.google.android.gms.base:com.google.android.gms:com.google.android.gms:com.sdkbox.plugin.sdkboxplay:android.support.v4 -S "/Users/me/Unity Projects/Flappy Bird POV/Temp/StagingArea/android-libraries/GoogleAIDL/res" -S "/Users/me/Unity Projects/Flappy Bird POV/Temp/StagingArea/android-libraries/GooglePlay/res" -S "/Users/me/Unity Projects/Flappy Bird POV/Temp/StagingArea/android-libraries/appcompat-v7-23.0.0/res" -S "/Users/me/Unity Projects/Flappy Bird POV/Temp/StagingArea/android-libraries/common/res" -S "/Users/me/Unity Projects/Flappy Bird POV/Temp/StagingArea/android-libraries/play-services-ads-9.4.0/res" -S "/Users/me/Unity Projects/Flappy Bird POV/Temp/StagingArea/android-libraries/play-services-ads-lite-9.4.0/res" -S "/Users/me/Unity Projects/Flappy Bird POV/Temp/StagingArea/android-libraries/play-services-base-9.4.0/res" -S "/Users/me/Unity Projects/Flappy Bird POV/Temp/StagingArea/android-libraries/play-services-basement-9.4.0/res" -S "/Users/me/Unity Projects/Flappy Bird POV/Temp/StagingArea/android-libraries/sdkbox_google_play_services_lib/res" -S "/Users/me/Unity Projects/Flappy Bird POV/Temp/StagingArea/android-libraries/sdkbox_play_lib/res" -S "/Users/me/Unity Projects/Flappy Bird POV/Temp/StagingArea/android-libraries/support-v4-23.0.0/res"
stderr[
/Users/me/Unity Projects/Flappy Bird POV/Temp/StagingArea/android-libraries/appcompat-v7-23.0.0/res/layout/abc_alert_dialog_material.xml:111: note: removing attribute http://schemas.android.com/apk/res/android:layoutDirection from <LinearLayout>
/Users/me/Unity Projects/Flappy Bird POV/Temp/StagingArea/android-libraries/appcompat-v7-23.0.0/res/layout/abc_alert_dialog_material.xml:48: note: removing attribute http://schemas.android.com/apk/res/android:textAlignment from <android.support.v7.internal.widget.DialogTitle>
/Users/me/Unity Projects/Flappy Bird POV/Temp/StagingArea/android-libraries/appcompat-v7-23.0.0/res/layout/abc_alert_dialog_material.xml: note: using v17 attributes; synthesizing resource com.mace.flappy3d:layout/abc_alert_dialog_material for configuration v17.
/Users/me/Unity Projects/Flappy Bird POV/Temp/StagingArea/android-libraries/appcompat-v7-23.0.0/res/layout/abc_dialog_title_material.xml:29: note: removing attribute http://schemas.android.com/apk/res/android:textAlignment from <TextView>
/Users/me/Unity Projects/Flappy Bird POV/Temp/StagingArea/android-libraries/appcompat-v7-23.0.0/res/layout/abc_dialog_title_material.xml: note: using v17 attributes; synthesizing resource com.mace.flappy3d:layout/abc_dialog_title_material for configuration v17.
/Users/me/Unity Projects/Flappy Bird POV/Temp/StagingArea/android-libraries/appcompat-v7-23.0.0/res/layout/abc_screen_toolbar.xml:27: note: removing attribute http://schemas.android.com/apk/res/android:touchscreenBlocksFocus from <android.support.v7.internal.widget.ActionBarContainer>
/Users/me/Unity Projects/Flappy Bird POV/Temp/StagingArea/android-libraries/appcompat-v7-23.0.0/res/layout/abc_screen_toolbar.xml: note: using v21 attributes; synthesizing resource com.mace.flappy3d:layout/abc_screen_toolbar for configuration v21.
/Users/me/Unity Projects/Flappy Bird POV/Temp/StagingArea/android-libraries/appcompat-v7-23.0.0/res/layout/abc_search_view.xml:47: note: removing attribute http://schemas.android.com/apk/res/android:layoutDirection from <LinearLayout>
/Users/me/Unity Projects/Flappy Bird POV/Temp/StagingArea/android-libraries/appcompat-v7-23.0.0/res/layout/abc_search_view.xml: note: using v17 attributes; synthesizing resource com.mace.flappy3d:layout/abc_search_view for configuration v17.
/Users/me/Unity Projects/Flappy Bird POV/Temp/StagingArea/android-libraries/appcompat-v7-23.0.0/res/layout/notification_template_big_media.xml:42: note: removing attribute http://schemas.android.com/apk/res/android:layoutDirection from <LinearLayout>
/Users/me/Unity Projects/Flappy Bird POV/Temp/StagingArea/android-libraries/appcompat-v7-23.0.0/res/layout/notification_template_big_media.xml:34: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from <include>
/Users/me/Unity Projects/Flappy Bird POV/Temp/StagingArea/android-libraries/appcompat-v7-23.0.0/res/layout/notification_template_big_media.xml:34: note: removing attribute http://schemas.android.com/apk/res/android:layout_toStartOf from <include>
/Users/me/Unity Projects/Flappy Bird POV/Temp/StagingArea/android-libraries/appcompat-v7-23.0.0/res/layout/notification_template_big_media.xml: note: using v17 attributes; synthesizing resource com.mace.flappy3d:layout/notification_template_big_media for configuration v17.
/Users/me/Unity Projects/Flappy Bird POV/Temp/StagingArea/android-libraries/appcompat-v7-23.0.0/res/layout/notification_template_big_media_narrow.xml:60: note: removing attribute http://schemas.android.com/apk/res/android:layout_toEndOf from <ImageView>
/Users/me/Unity Projects/Flappy Bird POV/Temp/StagingArea/android-libraries/appcompat-v7-23.0.0/res/layout/notification_template_big_media_narrow.xml:46: note: removing attribute http://schemas.android.com/apk/res/android:layout_toEndOf from <LinearLayout>
/Users/me/Unity Projects/Flappy Bird POV/Temp/StagingArea/android-libraries/appcompat-v7-23.0.0/res/layout/notification_template_big_media_narrow.xml:46: note: removing attribute http://schemas.android.com/apk/res/android:layoutDirection from <LinearLayout>
/Users/me/Unity Projects/Flappy Bird POV/Temp/StagingArea/android-libraries/appcompat-v7-23.0.0/res/layout/notification_template_big_media_narrow.xml:38: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from <include>
/Users/me/Unity Projects/Flappy Bird POV/Temp/StagingArea/android-libraries/appcompat-v7-23.0.0/res/layout/notification_template_big_media_narrow.xml:38: note: removing attribute http://schemas.android.com/apk/res/android:layout_toStartOf from <include>
/Users/me/Unity Projects/Flappy Bird POV/Temp/StagingArea/android-libraries/appcompat-v7-23.0.0/res/layout/notification_template_big_media_narrow.xml:30: note: removing attribute http://schemas.android.com/apk/res/android:layout_alignParentEnd from <include>
/Users/me/Unity Projects/Flappy Bird POV/Temp/StagingArea/android-libraries/appcompat-v7-23.0.0/res/layout/notification_template_big_media_narrow.xml: note: using v17 attributes; synthesizing resource com.mace.flappy3d:layout/notification_template_big_media_narrow for configuration v17.
/Users/me/Unity Projects/Flappy Bird POV/Temp/StagingArea/android-libraries/appcompat-v7-23.0.0/res/layout/notification_template_lines.xml:18: note: removing attribute http://schemas.android.com/apk/res/android:paddingEnd from <LinearLayout>
/Users/me/Unity Projects/Flappy Bird POV/Temp/StagingArea/android-libraries/appcompat-v7-23.0.0/res/layout/notification_template_lines.xml:77: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from <LinearLayout>
/Users/me/Unity Projects/Flappy Bird POV/Temp/StagingArea/android-libraries/appcompat-v7-23.0.0/res/layout/notification_template_lines.xml:96: note: removing attribute http://schemas.android.com/apk/res/android:paddingStart from <TextView>
/Users/me/Unity Projects/Flappy Bird POV/Temp/StagingArea/android-libraries/appcompat-v7-23.0.0/res/layout/notification_template_lines.xml:64: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from <TextView>
/Users/me/Unity Projects/Flappy Bird POV/Temp/StagingArea/android-libraries/appcompat-v7-23.0.0/res/layout/notification_template_lines.xml:27: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from <LinearLayout>
/Users/me/Unity Projects/Flappy Bird POV/Temp/StagingArea/android-libraries/appcompat-v7-23.0.0/res/layout/notification_template_lines.xml: note: using v17 attributes; synthesizing resource com.mace.flappy3d:layout/notification_template_lines for configuration v17.
/Users/me/Unity Projects/Flappy Bird POV/Temp/StagingArea/android-libraries/appcompat-v7-23.0.0/res/layout/notification_template_media.xml:43: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginEnd from <include>
/Users/me/Unity Projects/Flappy Bird POV/Temp/StagingArea/android-libraries/appcompat-v7-23.0.0/res/layout/notification_template_media.xml:33: note: removing attribute http://schemas.android.com/apk/res/android:layoutDirection from <LinearLayout>
/Users/me/Unity Projects/Flappy Bird POV/Temp/StagingArea/android-libraries/appcompat-v7-23.0.0/res/layout/notification_template_media.xml: note: using v17 attributes; synthesizing resource com.mace.flappy3d:layout/notification_template_media for configuration v17.
/Users/me/Unity Projects/Flappy Bird POV/Temp/StagingArea/android-libraries/appcompat-v7-23.0.0/res/layout/notification_template_part_chronometer.xml:18: note: removing attribute http://schemas.android.com/apk/res/android:paddingStart from <Chronometer>
/Users/me/Unity Projects/Flappy Bird POV/Temp/StagingArea/android-libraries/appcompat-v7-23.0.0/res/layout/notification_template_part_chronometer.xml: note: using v17 attributes; synthesizing resource com.mace.flappy3d:layout/notification_template_part_chronometer for configuration v17.
/Users/me/Unity Projects/Flappy Bird POV/Temp/StagingArea/android-libraries/appcompat-v7-23.0.0/res/layout/notification_template_part_time.xml:18: note: removing attribute http://schemas.android.com/apk/res/android:paddingStart from <DateTimeView>
/Users/me/Unity Projects/Flappy Bird POV/Temp/StagingArea/android-libraries/appcompat-v7-23.0.0/res/layout/notification_template_part_time.xml: note: using v17 attributes; synthesizing resource com.mace.flappy3d:layout/notification_template_part_time for configuration v17.
/Users/me/Unity Projects/Flappy Bird POV/Temp/StagingArea/android-libraries/appcompat-v7-23.0.0/res/drawable/abc_textfield_search_material.xml:19: note: removing attribute http://schemas.android.com/apk/res/android:state_activated from <item>
/Users/me/Unity Projects/Flappy Bird POV/Temp/StagingArea/android-libraries/appcompat-v7-23.0.0/res/drawable/abc_textfield_search_material.xml: note: using v11 attributes; synthesizing resource com.mace.flappy3d:drawable/abc_textfield_search_material for configuration v11.
/Users/me/Unity Projects/Flappy Bird POV/Temp/StagingArea/android-libraries/play-services-basement-9.4.0/res/values/values.xml:3: error: Attribute "imageAspectRatioAdjust" already defined with incompatible format.
/Users/me/Unity Projects/Flappy Bird POV/Temp/StagingArea/android-libraries/sdkbox_google_play_services_lib/res/values/common_attrs.xml:13: Original attribute defined here.
/Users/me/Unity Projects/Flappy Bird POV/Temp/StagingArea/android-libraries/play-services-base-9.4.0/res/values/values.xml:21: error: Attribute "buttonSize" already defined with incompatible format.
/Users/me/Unity Projects/Flappy Bird POV/Temp/StagingArea/android-libraries/sdkbox_google_play_services_lib/res/values/base_attrs.xml:11: Original attribute defined here.
/Users/me/Unity Projects/Flappy Bird POV/Temp/StagingArea/android-libraries/play-services-base-9.4.0/res/values/values.xml:21: error: Attribute "colorScheme" already defined with incompatible format.
/Users/me/Unity Projects/Flappy Bird POV/Temp/StagingArea/android-libraries/sdkbox_google_play_services_lib/res/values/base_attrs.xml:16: Original attribute defined here.
]
stdout[
Configurations:
(default)
Files:
AndroidManifest.xml
Src: () AndroidManifest.xml
Resource Dirs:
Including resources from package: /Users/me/Library/Android/sdk/platforms/android-24/android.jar
applyFileOverlay for drawable
trying overlaySet Key=cast_ic_notification_0.png
trying overlaySet Key=cast_ic_notification_1.png
trying overlaySet Key=cast_ic_notification_2.png
trying overlaySet Key=cast_ic_notification_connecting.xml
trying overlaySet Key=cast_ic_notification_on.png
trying overlaySet Key=common_full_open_on_phone.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_ic_googleplayservices.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_plusone_medium_off_client.png
trying overlaySet Key=ic_plusone_small_off_client.png
trying overlaySet Key=ic_plusone_standard_off_client.png
trying overlaySet Key=ic_plusone_tall_off_client.png
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
baseFile 0 has flavor mdpi-v4
baseFile 1 has flavor tvdpi-v4
baseFile 2 has flavor hdpi-v4
baseFile 3 has flavor xhdpi-v4
baseFile 4 has flavor xxhdpi-v4
Comment
Your answer
Follow this Question
Related Questions
The game freezes after a splash screen 0 Answers
Gradle build faild. see... error "in unity 2020.1.4f1!!!" 0 Answers
several build errors while trying to build unity project to android device 0 Answers
android Build Issue 1 Answer
Resolve build tools error,Unable to resolve build tool - Unity 0 Answers