aapt: Failed to re-package resources, but no errors...

I know that this error has a lot of answers already, but this is some how different. I don’t have an error! Or at least I can’t understand what the error is…
I’m stuck.
aapt fails and writes me a hundred of lines of warnings, no errors. there are a lot of “removing attribute” that (I suppose) is just a warning, then the buffer ends without the error to be displayed.
Since I recently updated the android-sdk to 23.0.3, I went back and downgraded to 23.0.1 without any difference.
I also tried to remove and reinstall admob from the most recent unity official package, no change… downgraded it… no change… delete the temp. No difference either.
I’m really stuck, and I can’t build anymore for Android a project that I built a thousand times before :frowning:

Anyone can help? :frowning:
Thank you

Here is the entire mysterious (and blocking) aapt error. Sorry for its length.

CommandInvokationFailure: Failed to re-package resources. See the Console for details.
F:\Android\android-sdk\build-tools\23.0.1\aapt.exe package --auto-add-overlay -v -f -m -J gen -M AndroidManifest.xml -S "res" -I "F:/Android/android-sdk\platforms\android-23\android.jar" -F bin/resources.ap_ --extra-packages android.support.v7.appcompat:com.google.firebase:com.google.unity:com.google.android.gms.ads.impl:com.google.android.gms.ads:com.google.android.gms.base:com.google.android.gms:com.google.android.gms.tasks:android.support.v4:it.beppi.robots:com.unity3d.ads.android -S "F:\UnityProjects\Robuzzle\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res" -S "F:\UnityProjects\Robuzzle\Temp\StagingArea\android-libraries\firebase-common-9.0.2\res" -S "F:\UnityProjects\Robuzzle\Temp\StagingArea\android-libraries\play-services-ads-9.0.2\res" -S "F:\UnityProjects\Robuzzle\Temp\StagingArea\android-libraries\play-services-ads-lite-9.0.2\res" -S "F:\UnityProjects\Robuzzle\Temp\StagingArea\android-libraries\play-services-base-9.0.2\res" -S "F:\UnityProjects\Robuzzle\Temp\StagingArea\android-libraries\play-services-basement-9.0.2\res" -S "F:\UnityProjects\Robuzzle\Temp\StagingArea\android-libraries\play-services-tasks-9.0.2\res" -S "F:\UnityProjects\Robuzzle\Temp\StagingArea\android-libraries\support-v4-23.1.1\res" -S "F:\UnityProjects\Robuzzle\Temp\StagingArea\android-libraries\unity-android-resources\res" -S "F:\UnityProjects\Robuzzle\Temp\StagingArea\android-libraries\unityads-release\res"

stderr[
F:\UnityProjects\Robuzzle\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\abc_alert_dialog_button_bar_material.xml:18: note: removing attribute http://schemas.android.com/apk/res/android:layoutDirection from <android.support.v7.widget.ButtonBarLayout>
F:\UnityProjects\Robuzzle\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\abc_alert_dialog_button_bar_material.xml: note: using v17 attributes; synthesizing resource it.beppi.robots:layout/abc_alert_dialog_button_bar_material for configuration v17.
F:\UnityProjects\Robuzzle\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\abc_alert_dialog_material.xml:48: note: removing attribute http://schemas.android.com/apk/res/android:textAlignment from <android.support.v7.widget.DialogTitle>
F:\UnityProjects\Robuzzle\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\abc_alert_dialog_material.xml: note: using v17 attributes; synthesizing resource it.beppi.robots:layout/abc_alert_dialog_material for configuration v17.
F:\UnityProjects\Robuzzle\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\abc_dialog_title_material.xml:29: note: removing attribute http://schemas.android.com/apk/res/android:textAlignment from <TextView>
F:\UnityProjects\Robuzzle\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\abc_dialog_title_material.xml: note: using v17 attributes; synthesizing resource it.beppi.robots:layout/abc_dialog_title_material for configuration v17.
F:\UnityProjects\Robuzzle\Temp\StagingArea\android-libraries\appcompat-v7-23.1.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>
F:\UnityProjects\Robuzzle\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\abc_screen_toolbar.xml: note: using v21 attributes; synthesizing resource it.beppi.robots:layout/abc_screen_toolbar for configuration v21.
F:\UnityProjects\Robuzzle\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\abc_search_view.xml:47: note: removing attribute http://schemas.android.com/apk/res/android:layoutDirection from <LinearLayout>
F:\UnityProjects\Robuzzle\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\abc_search_view.xml: note: using v17 attributes; synthesizing resource it.beppi.robots:layout/abc_search_view for configuration v17.
F:\UnityProjects\Robuzzle\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout

otification_template_big_media.xml:42: note: removing attribute http://schemas.android.com/apk/res/android:layoutDirection from
F:\UnityProjects\Robuzzle\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout
otification_template_big_media.xml:34: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from
F:\UnityProjects\Robuzzle\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout
otification_template_big_media.xml:34: note: removing attribute http://schemas.android.com/apk/res/android:layout_toStartOf from
F:\UnityProjects\Robuzzle\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout
otification_template_big_media.xml: note: using v17 attributes; synthesizing resource it.beppi.robots:layout/notification_template_big_media for configuration v17.
F:\UnityProjects\Robuzzle\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout
otification_template_big_media_narrow.xml:60: note: removing attribute http://schemas.android.com/apk/res/android:layout_toEndOf from
F:\UnityProjects\Robuzzle\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout
otification_template_big_media_narrow.xml:46: note: removing attribute http://schemas.android.com/apk/res/android:layout_toEndOf from
F:\UnityProjects\Robuzzle\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout
otification_template_big_media_narrow.xml:46: note: removing attribute http://schemas.android.com/apk/res/android:layoutDirection from
F:\UnityProjects\Robuzzle\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout
otification_template_big_media_narrow.xml:38: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from
F:\UnityProjects\Robuzzle\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout
otification_template_big_media_narrow.xml:38: note: removing attribute http://schemas.android.com/apk/res/android:layout_toStartOf from
F:\UnityProjects\Robuzzle\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout
otification_template_big_media_narrow.xml:30: note: removing attribute http://schemas.android.com/apk/res/android:layout_alignParentEnd from
F:\UnityProjects\Robuzzle\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout
otification_template_big_media_narrow.xml: note: using v17 attributes; synthesizing resource it.beppi.robots:layout/notification_template_big_media_narrow for configuration v17.
F:\UnityProjects\Robuzzle\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout
otification_template_lines.xml:18: note: removing attribute http://schemas.android.com/apk/res/android:paddingEnd from
F:\UnityProjects\Robuzzle\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout
otification_template_lines.xml:77: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from
F:\UnityProjects\Robuzzle\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout
otification_template_lines.xml:96: note: removing attribute http://schemas.android.com/apk/res/android:paddingStart from
F:\UnityProjects\Robuzzle\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout
otification_template_lines.xml:64: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from
F:\UnityProjects\Robuzzle\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout
otification_template_lines.xml:27: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from
F:\UnityProjects\Robuzzle\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout
otification_template_lines.xml: note: using v17 attributes; synthesizing resource it.beppi.robots:layout/notification_template_lines for configuration v17.
F:\UnityProjects\Robuzzle\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout
otification_template_media.xml:43: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginEnd from
F:\UnityProjects\Robuzzle\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout
otification_template_media.xml:33: note: removing attribute http://schemas.android.com/apk/res/android:layoutDirection from
F:\UnityProjects\Robuzzle\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout
otification_template_media.xml: note: using v17 attributes; synthesizing resource it.beppi.robots:layout/notification_template_media for configuration v17.
F:\UnityProjects\Robuzzle\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout
otification_template_part_chronometer.xml:18: note: removing attribute http://schemas.android.com/apk/res/android:paddingStart from
F:\UnityProjects\Robuzzle\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout
otification_template_part_chronometer.xml: note: using v17 attributes; synthesizing resource it.beppi.robots:layout/notification_template_part_chronometer for configuration v17.
F:\UnityProjects\Robuzzle\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout
otification_template_part_time.xml:18: note: removing attribute http://schemas.android.com/apk/res/android:paddingStart from
F:\UnityProjects\Robuzzle\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout
otification_template_part_time.xml: note: using v17 attributes; synthesizing resource it.beppi.robots:layout/notification_template_part_time for configuration v17.
F:\UnityProjects\Robuzzle\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\select_dialog_multichoice_material.xml:18: note: removing attribute http://schemas.android.com/apk/res/android:paddingStart from
F:\UnityProjects\Robuzzle\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\select_dialog_multichoice_material.xml:18: note: removing attribute http://schemas.android.com/apk/res/android:paddingEnd from
F:\UnityProjects\Robuzzle\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\select_dialog_multichoice_material.xml:18: note: removing attribute http://schemas.android.com/apk/res/android:drawableStart from
F:\UnityProjects\Robuzzle\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\select_dialog_multichoice_material.xml: note: using v13 attributes; synthesizing resource it.beppi.robots:layout/select_dialog_multichoice_material for configuration v13.
F:\UnityProjects\Robuzzle\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\select_dialog_singlechoice_material.xml:18: note: removing attribute http://schemas.android.com/apk/res/android:paddingStart from
F:\UnityProjects\Robuzzle\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\select_dialog_singlechoice_material.xml:18: note: removing attribute http://schemas.android.com/apk/res/android:paddingEnd from
F:\UnityProjects\Robuzzle\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\select_dialog_singlechoice_material.xml:18: note: removing attribute http://schemas.android.com/apk/res/android:drawableStart from
F:\UnityProjects\Robuzzle\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\select_dialog_singlechoice_material.xml: note: using v13 attributes; synthesizing resource it.beppi.robots:layout/select_dialog_singlechoice_material for configuration v13.
F:\UnityProjects\Robuzzle\Temp\StagingArea\android-libraries\unityads-release\res\layout\unityads_button_audio_toggle.xml:2: note: removing attribute http://schemas.android.com/apk/res/android:paddingStart from
F:\UnityProjects\Robuzzle\Temp\StagingArea\android-libraries\unityads-release\res\layout\unityads_button_audio_toggle.xml:61: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from
F:\UnityProjects\Robuzzle\Temp\StagingArea\android-libraries\unityads-release\res\layout\unityads_button_audio_toggle.xml:27: note: removing attribute http://schemas.android.com/apk/res/android:layout_alignParentStart from
F:\UnityProjects\Robuzzle\Temp\StagingArea\android-libraries\unityads-release\res\layout\unityads_button_audio_toggle.xml:27: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from
F:\UnityProjects\Robuzzle\Temp\StagingArea\android-libraries\unityads-release\res\layout\unityads_button_audio_toggle.xml:52: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from
F:\UnityProjects\Robuzzle\Temp\StagingArea\android-libraries\unityads-release\res\layout\unityads_button_audio_toggle.xml:44: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from
F:\UnityProjects\Robuzzle\Temp\StagingArea\android-libraries\unityads-release\res\layout\unityads_button_audio_toggle.xml:19: note: removing attribute http://schemas.android.com/apk/res/android:layout_alignParentStart from
F:\UnityProjects\Robuzzle\Temp\StagingArea\android-libraries\unityads-release\res\layout\unityads_button_audio_toggle.xml:10: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from
F:\UnityProjects\Robuzzle\Temp\StagingArea\android-libraries\unityads-release\res\layout\unityads_button_audio_toggle.xml: note: using v17 attributes; synthesizing resource it.beppi.robots:layout/unityads_button_audio_toggle for configuration v17.
F:\UnityProjects\Robuzzle\Temp\StagingArea\android-libraries\unityads-release\res\layout\unityads_button_pause.xml:8: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from
F:\UnityProjects\Robuzzle\Temp\StagingArea\android-libraries\unityads-release\res\layout\unityads_button_pause.xml: note: using v17 attributes; synthesizing resource it.beppi.robots:layout/unityads_button_pause for configuration v17.
F:\UnityProjects\Robuzzle\Temp\StagingArea\android-libraries\unityads-release\res\layout\unityads_view_video_play.xml:92: note: removing attribute http://schemas.android.com/apk/res/android:layout_alignParentStart from
F:\UnityProjects\Robuzzle\Temp\StagingArea\android-libraries\unityads-release\res\layout\unityads_view_video_play.xml:57: note: removing attribute http://schemas.android.com/apk/res/android:layout_alignParentEnd from
F:\UnityProjects\Robuzzle\Temp\StagingArea\android-libraries\unityads-release\res\layout\unityads_view_video_play.xml:57: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginEnd from
F:\UnityProjects\Robuzzle\Temp\StagingArea\android-libraries\unityads-release\res\layout\unityads_view_video_play.xml:44: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginEnd from
F:\UnityProjects\Robuzzle\Temp\StagingArea\android-libraries\unityads-release\res\layout\unityads_view_video_play.xml:29: note: removing

Hello @beppim, 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…

Thank you HardikMaru2001, I repeatedly deleted all the plugins folder, including the .aar files, and restarted Unity to unload the plugins, I also tried with almost any version of SDK build-tools.
I also tried to uninstall the Google Play Services.

The project builds perfectly when everything related to googleads is removed.
Whenever I add the googleads plugin, it gives that fancy error.
I also tried with every single version of the plugin since 2.2 from this repository: gitHub GoogleAds

(note: actually it’s documented that before version 3 there were similar problems for a certain period of time related to playservices path, but now those problems should be fixed)

The really strange thing is that the project does not build when googleads is added, but actually… inside my code google ads are currently disabled, waiting to be fixed, so they are not really used, only the plugin is there, without being used.

I also add a sdk manager screenshot as you asked, although it changed a lot in these days… :slight_smile:

Thank you in advance.