- Home /
after i imported admob to my android unity project and edited the code, error occured,after i imported admob to my android unity project, error occured
please note that it is running normally on the editor but when I tries to build it a pop up message appears:
FAILED TO REPACKAGE RESOURCES. SEE THE CONSOLE FOR DETAILS. when I opened the console I found:
CommandInvokationFailure: Failed to re-package resources. C:\Android\sdk1\build-tools\23.0.1\aapt.exe package --auto-add-overlay -v -f -m -J gen -M AndroidManifest.xml -S "res" -I "C:/Android/sdk1\platforms\android-23\android.jar" -F bin/resources.ap_ --extra-packages android.support.v7.appcompat:com.google.example.games.mainlibproj:com.google.android.gms.ads.impl:com.google.android.gms.ads:com.google.android.gms.auth.api:com.google.android.gms.auth:com.google.android.gms.base:com.google.android.gms.base:com.google.android.gms:com.google.android.gms:com.google.android.gms.drive:com.google.android.gms.games:com.google.android.gms.gass:com.google.android.gms.nearby:com.google.android.gms.tasks:com.google.android.gms.tasks:android.support.compat:android.support.coreui:android.support.coreutils:android.support.fragment:android.support.mediacompat:android.support.v4 -S "C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res" -S "C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\play-services-ads-10.2.0\res" -S "C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\play-services-ads-lite-10.2.0\res" -S "C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\play-services-auth-11.0.0\res" -S "C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\play-services-auth-base-11.0.0\res" -S "C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\play-services-base-10.2.0\res" -S "C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\play-services-base-11.0.0\res" -S "C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\play-services-basement-10.2.0\res" -S "C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\play-services-basement-11.0.0\res" -S "C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\play-services-drive-11.0.0\res" -S "C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\play-services-games-11.0.0\res" -S "C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\play-services-gass-10.2.0\res" -S "C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\play-services-nearby-11.0.0\res" -S "C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\play-services-tasks-10.2.0\res" -S "C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\play-services-tasks-11.0.0\res" -S "C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\support-compat-25.2.0\res" -S "C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\support-core-ui-25.2.0\res" -S "C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\support-core-utils-25.2.0\res" -S "C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\support-fragment-25.2.0\res" -S "C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\support-media-compat-25.2.0\res" -S "C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\support-v4-25.2.0\res"
stderr[ C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\abc_alert_dialog_button_bar_material.xml:18: note: removing attribute http://schemas.android.com/apk/res/android:layoutDirection from C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\abc_alert_dialog_button_bar_material.xml: note: using v17 attributes; synthesizing resource com.abedjabi.Swish:layout/abc_alert_dialog_button_bar_material for configuration v17. C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\abc_alert_dialog_material.xml:48: note: removing attribute http://schemas.android.com/apk/res/android:textAlignment from C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\abc_alert_dialog_material.xml: note: using v17 attributes; synthesizing resource com.abedjabi.Swish:layout/abc_alert_dialog_material for configuration v17. C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\abc_dialog_title_material.xml:29: note: removing attribute http://schemas.android.com/apk/res/android:textAlignment from C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\abc_dialog_title_material.xml: note: using v17 attributes; synthesizing resource com.abedjabi.Swish:layout/abc_dialog_title_material for configuration v17. C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\abc_screen_toolbar.xml:27: note: removing attribute http://schemas.android.com/apk/res/android:touchscreenBlocksFocus from C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\abc_screen_toolbar.xml: note: using v21 attributes; synthesizing resource com.abedjabi.Swish:layout/abc_screen_toolbar for configuration v21. C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\abc_search_view.xml:47: note: removing attribute http://schemas.android.com/apk/res/android:layoutDirection from C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\abc_search_view.xml: note: using v17 attributes; synthesizing resource com.abedjabi.Swish:layout/abc_search_view for configuration v17. C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\notification_template_big_media.xml:42: note: removing attribute http://schemas.android.com/apk/res/android:layoutDirection from C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\notification_template_big_media.xml:34: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\notification_template_big_media.xml:34: note: removing attribute http://schemas.android.com/apk/res/android:layout_toStartOf from C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\notification_template_big_media.xml: note: using v17 attributes; synthesizing resource com.abedjabi.Swish:layout/notification_template_big_media for configuration v17. C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\notification_template_big_media_narrow.xml:60: note: removing attribute http://schemas.android.com/apk/res/android:layout_toEndOf from C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\notification_template_big_media_narrow.xml:46: note: removing attribute http://schemas.android.com/apk/res/android:layout_toEndOf from C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\notification_template_big_media_narrow.xml:46: note: removing attribute http://schemas.android.com/apk/res/android:layoutDirection from C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\notification_template_big_media_narrow.xml:38: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\notification_template_big_media_narrow.xml:38: note: removing attribute http://schemas.android.com/apk/res/android:layout_toStartOf from C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\notification_template_big_media_narrow.xml:30: note: removing attribute http://schemas.android.com/apk/res/android:layout_alignParentEnd from C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\notification_template_big_media_narrow.xml: note: using v17 attributes; synthesizing resource com.abedjabi.Swish:layout/notification_template_big_media_narrow for configuration v17. C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\notification_template_lines.xml:18: note: removing attribute http://schemas.android.com/apk/res/android:paddingEnd from C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\notification_template_lines.xml:77: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\notification_template_lines.xml:96: note: removing attribute http://schemas.android.com/apk/res/android:paddingStart from C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\notification_template_lines.xml:64: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\notification_template_lines.xml:27: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\notification_template_lines.xml: note: using v17 attributes; synthesizing resource com.abedjabi.Swish:layout/notification_template_lines for configuration v17. C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\notification_template_media.xml:43: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginEnd from C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\notification_template_media.xml:33: note: removing attribute http://schemas.android.com/apk/res/android:layoutDirection from C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\notification_template_media.xml: note: using v17 attributes; synthesizing resource com.abedjabi.Swish:layout/notification_template_media for configuration v17. C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\notification_template_part_chronometer.xml:18: note: removing attribute http://schemas.android.com/apk/res/android:paddingStart from C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\notification_template_part_chronometer.xml: note: using v17 attributes; synthesizing resource com.abedjabi.Swish:layout/notification_template_part_chronometer for configuration v17. C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\notification_template_part_time.xml:18: note: removing attribute http://schemas.android.com/apk/res/android:paddingStart from C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\notification_template_part_time.xml: note: using v17 attributes; synthesizing resource com.abedjabi.Swish:layout/notification_template_part_time for configuration v17. C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\select_dialog_multichoice_material.xml:18: note: removing attribute http://schemas.android.com/apk/res/android:paddingStart from C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\select_dialog_multichoice_material.xml:18: note: removing attribute http://schemas.android.com/apk/res/android:paddingEnd from C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\select_dialog_multichoice_material.xml: note: using v17 attributes; synthesizing resource com.abedjabi.Swish:layout/select_dialog_multichoice_material for configuration v17. C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\select_dialog_singlechoice_material.xml:18: note: removing attribute http://schemas.android.com/apk/res/android:paddingStart from C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\select_dialog_singlechoice_material.xml:18: note: removing attribute http://schemas.android.com/apk/res/android:paddingEnd from C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\select_dialog_singlechoice_material.xml: note: using v17 attributes; synthesizing resource com.abedjabi.Swish:layout/select_dialog_singlechoice_material for configuration v17. C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\drawable\abc_ratingbar_indicator_material.xml:23: note: removing attribute http://schemas.android.com/apk/res/android:tileModeX from C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\drawable\abc_ratingbar_indicator_material.xml: note: using v21 attributes; synthesizing resource com.abedjabi.Swish:drawable/abc_ratingbar_indicator_material for configuration v21. C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\drawable\abc_ratingbar_small_material.xml:23: note: removing attribute http://schemas.android.com/apk/res/android:tileModeX from C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\drawable\abc_ratingbar_small_material.xml: note: using v21 attributes; synthesizing resource com.abedjabi.Swish:drawable/abc_ratingbar_small_material for configuration v21. C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\play-services-base-10.2.0\res\values\values.xml:33: error: Attribute "imageAspectRatioAdjust" has already been defined
C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\play-services-base-10.2.0\res\values\values.xml:42: error: Attribute "imageAspectRatio" has already been defined
C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\play-services-base-10.2.0\res\values\values.xml:44: error: Attribute "circleCrop" has already been defined
C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\play-services-base-10.2.0\res\values\values.xml:46: error: Attribute "buttonSize" has already been defined
C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\play-services-base-10.2.0\res\values\values.xml:54: error: Attribute "colorScheme" has already been defined
C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\play-services-base-10.2.0\res\values\values.xml:63: error: Attribute "scopeUris" has already been defined
] stdout[ Configurations: (default)
Files: AndroidManifest.xml Src: () AndroidManifest.xml
Resource Dirs: Including resources from package: C:\Android\sdk1\platforms\android-23\android.jar applyFileOverlay for drawable 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_focused.xml trying overlaySet Key=common_google_signin_btn_icon_dark_normal.xml trying overlaySet Key=common_google_signin_btn_icon_dark_normal_background.9.png trying overlaySet Key=common_google_signin_btn_icon_disabled.xml trying overlaySet Key=common_google_signin_btn_icon_light.xml trying overlaySet Key=common_google_signin_btn_icon_light_focused.xml trying overlaySet Key=common_google_signin_btn_icon_light_normal.xml trying overlaySet Key=common_google_signin_btn_icon_light_normal_background.9.png trying overlaySet Key=common_google_signin_btn_text_dark.xml trying overlaySet Key=common_google_signin_btn_text_dark_focused.xml trying overlaySet Key=common_google_s
what should I do,
Answer by ctalystnetwork · Jun 30, 2017 at 09:23 PM
These kind of are usually due to the Android Manifest, Android SDK Manager or build tools issues. Have you verified you're running the latest versions through android studio?
It may just be updating your SDK.
Your answer
![](https://koobas.hobune.stream/wayback/20220612125101im_/https://answers.unity.com/themes/thub/images/avi.jpg)