Question by
demzsenimrod · Mar 19, 2019 at 09:49 PM ·
buildbuild-errorupdategoogle play
Can't make new builds : CommandInvokationFailure: Failed to re-package resources
Hello, i've met with this error since i've updated my project from 5.6f1 to 2018.3.3f1. Initially i had issues with firebase and once i updated the firebase ,i wanted to make a new build, however i've met with this error.
CommandInvokationFailure: Failed to re-package resources
If i delete play-services-base-10.2.0 then my build will be successful, however the apk cant be installed., giving me the error : "Error Parsing the package." I couldn't find any solution, can someone please help me out ?
Here's the error :
CommandInvokationFailure: Failed to re-package resources.
C:\Users\Nimrod\AppData\Local\Android\Sdk\build-tools\29.0.0-rc1\aapt.exe package --auto-add-overlay -v -f -m -J "gen" -M "AndroidManifest.xml" -S "res" -I "C:/Users/Nimrod/AppData/Local/Android/Sdk\platforms\android-28\android.jar" -F bin/resources.ap_ --extra-packages android.arch.lifecycle:android.support.compat:android.support.coreui:android.support.coreutils:android.support.fragment:android.support.mediacompat:android.support.v4:com.google.android.gms.ads_identifier:com.google.android.gms.base:com.google.android.gms.common:com.google.android.gms.measurement.api:com.google.android.gms.measurement_base:com.google.android.gms.stats:com.google.android.gms.tasks:com.google.firebase.measurement:com.google.firebase.measurement_impl:com.google.firebase.unity.analytics:com.google.firebase.unity.app:com.google.firebase:com.google.firebase.firebase_core:com.google.firebase.iid:com.google.firebase.iid.internal:com.google.firebase.analytics.connector:com.google.firebase.analytics.connector.impl:com.google.firebase.messaging:com.google.firebase.unity.messaging:com.google.firebase.unity:com.google.android.gms.base:com.google.android.gms:com.google.android.gms.tasks:android.support.v4:mylittleprincess.castle.resources:com.unity.channel.sdk.editor.xiaomi -S "D:\Little pRincess\Temp\StagingArea\android-libraries\android.arch.lifecycle.runtime-1.0.0\res" -S "D:\Little pRincess\Temp\StagingArea\android-libraries\com.android.support.support-compat-26.1.0\res" -S "D:\Little pRincess\Temp\StagingArea\android-libraries\com.android.support.support-core-ui-26.1.0\res" -S "D:\Little pRincess\Temp\StagingArea\android-libraries\com.android.support.support-core-utils-26.1.0\res" -S "D:\Little pRincess\Temp\StagingArea\android-libraries\com.android.support.support-fragment-26.1.0\res" -S "D:\Little pRincess\Temp\StagingArea\android-libraries\com.android.support.support-media-compat-26.1.0\res" -S "D:\Little pRincess\Temp\StagingArea\android-libraries\com.android.support.support-v4-26.1.0\res" -S "D:\Little pRincess\Temp\StagingArea\android-libraries\com.google.android.gms.play-services-base-16.0.1\res" -S "D:\Little pRincess\Temp\StagingArea\android-libraries\com.google.android.gms.play-services-basement-16.0.1\res" -S "D:\Little pRincess\Temp\StagingArea\android-libraries\com.google.firebase.firebase-messaging-17.3.4\res" -S "D:\Little pRincess\Temp\StagingArea\android-libraries\Firebase\res" -S "D:\Little pRincess\Temp\StagingArea\android-libraries\play-services-base-10.2.0\res" -S "D:\Little pRincess\Temp\StagingArea\android-libraries\play-services-basement-10.2.0\res" -S "D:\Little pRincess\Temp\StagingArea\android-libraries\play-services-tasks-10.2.0\res" -S "D:\Little pRincess\Temp\StagingArea\android-libraries\support-v4-24.0.0\res" -S "D:\Little pRincess\Temp\StagingArea\android-libraries\unity-android-resources\res" -S "D:\Little pRincess\Temp\StagingArea\android-libraries\UnityChannel\res"
stderr[
D:\Little pRincess\Temp\StagingArea\android-libraries\com.android.support.support-compat-26.1.0\res\layout\notification_action.xml:17: note: removing attribute http://schemas.android.com/apk/res/android:paddingStart from <LinearLayout>
D:\Little pRincess\Temp\StagingArea\android-libraries\com.android.support.support-compat-26.1.0\res\layout\notification_action.xml:32: note: removing attribute http://schemas.android.com/apk/res/android:paddingStart from <TextView>
D:\Little pRincess\Temp\StagingArea\android-libraries\com.android.support.support-compat-26.1.0\res\layout\notification_action.xml: note: using v17 attributes; synthesizing resource mylittleprincess.castle:layout/notification_action for configuration v17.
D:\Little pRincess\Temp\StagingArea\android-libraries\com.android.support.support-compat-26.1.0\res\layout\notification_action_tombstone.xml:18: note: removing attribute http://schemas.android.com/apk/res/android:paddingStart from <LinearLayout>
D:\Little pRincess\Temp\StagingArea\android-libraries\com.android.support.support-compat-26.1.0\res\layout\notification_action_tombstone.xml:37: note: removing attribute http://schemas.android.com/apk/res/android:paddingStart from <TextView>
D:\Little pRincess\Temp\StagingArea\android-libraries\com.android.support.support-compat-26.1.0\res\layout\notification_action_tombstone.xml: note: using v17 attributes; synthesizing resource mylittleprincess.castle:layout/notification_action_tombstone for configuration v17.
D:\Little pRincess\Temp\StagingArea\android-libraries\com.android.support.support-media-compat-26.1.0\res\layout\notification_template_big_media.xml:42: note: removing attribute http://schemas.android.com/apk/res/android:layoutDirection from <LinearLayout>
D:\Little pRincess\Temp\StagingArea\android-libraries\com.android.support.support-media-compat-26.1.0\res\layout\notification_template_big_media.xml:34: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from <include>
D:\Little pRincess\Temp\StagingArea\android-libraries\com.android.support.support-media-compat-26.1.0\res\layout\notification_template_big_media.xml:34: note: removing attribute http://schemas.android.com/apk/res/android:layout_toStartOf from <include>
D:\Little pRincess\Temp\StagingArea\android-libraries\com.android.support.support-media-compat-26.1.0\res\layout\notification_template_big_media.xml:27: note: removing attribute http://schemas.android.com/apk/res/android:layout_alignParentEnd from <include>
D:\Little pRincess\Temp\StagingArea\android-libraries\com.android.support.support-media-compat-26.1.0\res\layout\notification_template_big_media.xml: note: using v17 attributes; synthesizing resource mylittleprincess.castle:layout/notification_template_big_media for configuration v17.
D:\Little pRincess\Temp\StagingArea\android-libraries\com.android.support.support-media-compat-26.1.0\res\layout\notification_template_big_media_custom.xml:89: note: removing attribute http://schemas.android.com/apk/res/android:layoutDirection from <LinearLayout>
D:\Little pRincess\Temp\StagingArea\android-libraries\com.android.support.support-media-compat-26.1.0\res\layout\notification_template_big_media_custom.xml:34: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from <LinearLayout>
D:\Little pRincess\Temp\StagingArea\android-libraries\com.android.support.support-media-compat-26.1.0\res\layout\notification_template_big_media_custom.xml:34: note: removing attribute http://schemas.android.com/apk/res/android:layout_toStartOf from <LinearLayout>
D:\Little pRincess\Temp\StagingArea\android-libraries\com.android.support.support-media-compat-26.1.0\res\layout\notification_template_big_media_custom.xml:56: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginEnd from <FrameLayout>
D:\Little pRincess\Temp\StagingArea\android-libraries\com.android.support.support-media-compat-26.1.0\res\layout\notification_template_big_media_custom.xml:45: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from <FrameLayout>
D:\Little pRincess\Temp\StagingArea\android-libraries\com.android.support.support-media-compat-26.1.0\res\layout\notification_template_big_media_custom.xml:45: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginEnd from <FrameLayout>
D:\Little pRincess\Temp\StagingArea\android-libraries\com.android.support.support-media-compat-26.1.0\res\layout\notification_template_big_media_custom.xml:27: note: removing attribute http://schemas.android.com/apk/res/android:layout_alignParentEnd from <include>
D:\Little pRincess\Temp\StagingArea\android-libraries\com.android.support.support-media-compat-26.1.0\res\layout\notification_template_big_media_custom.xml: note: using v17 attributes; synthesizing resource mylittleprincess.castle:layout/notification_template_big_media_custom for configuration v17.
D:\Little pRincess\Temp\StagingArea\android-libraries\com.android.support.support-media-compat-26.1.0\res\layout\notification_template_big_media_narrow.xml:60: note: removing attribute http://schemas.android.com/apk/res/android:layout_toEndOf from <ImageView>
D:\Little pRincess\Temp\StagingArea\android-libraries\com.android.support.support-media-compat-26.1.0\res\layout\notification_template_big_media_narrow.xml:46: note: removing attribute http://schemas.android.com/apk/res/android:layout_toEndOf from <LinearLayout>
D:\Little pRincess\Temp\StagingArea\android-libraries\com.android.support.support-media-compat-26.1.0\res\layout\notification_template_big_media_narrow.xml:46: note: removing attribute http://schemas.android.com/apk/res/android:layoutDirection from <LinearLayout>
D:\Little pRincess\Temp\StagingArea\android-libraries\com.android.support.support-media-compat-26.1.0\res\layout\notification_template_big_media_narrow.xml:38: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from <include>
D:\Little pRincess\Temp\StagingArea\android-libraries\com.android.support.support-media-compat-26.1.0\res\layout\notification_template_big_media_narrow.xml:38: note: removing attribute http://schemas.android.com/apk/res/android:layout_toStartOf from <include>
D:\Little pRincess\Temp\StagingArea\android-libraries\com.android.support.support-media-compat-26.1.0\res\layout\notification_template_big_media_narrow.xml:30: note: removing attribute http://schemas.android.com/apk/res/android:layout_alignParentEnd from <include>
D:\Little pRincess\Temp\StagingArea\android-libraries\com.android.support.support-media-compat-26.1.0\res\layout\notification_template_big_media_narrow.xml: note: using v17 attributes; synthesizing resource mylittleprincess.castle:layout/notification_template_big_media_narrow for configuration v17.
D:\Little pRincess\Temp\StagingArea\android-libraries\com.android.support.support-media-compat-26.1.0\res\layout\notification_template_big_media_narrow_custom.xml:107: note: removing attribute http://schemas.android.com/apk/res/android:layout_toEndOf from <ImageView>
D:\Little pRincess\Temp\StagingArea\android-libraries\com.android.support.support-media-compat-26.1.0\res\layout\notification_template_big_media_narrow_custom.xml:93: note: removing attribute http://schemas.android.com/apk/res/android:layout_toEndOf from <LinearLayout>
D:\Little pRincess\Temp\StagingArea\android-libraries\com.android.support.support-media-compat-26.1.0\res\layout\notification_template_big_media_narrow_custom.xml:93: note: removing attribute http://schemas.android.com/apk/res/android:layoutDirection from <LinearLayout>
D:\Little pRincess\Temp\StagingArea\android-libraries\com.android.support.support-media-compat-26.1.0\res\layout\notification_template_big_media_narrow_custom.xml:38: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from <LinearLayout>
D:\Little pRincess\Temp\StagingArea\android-libraries\com.android.support.support-media-compat-26.1.0\res\layout\notification_template_big_media_narrow_custom.xml:38: note: removing attribute http://schemas.android.com/apk/res/android:layout_toStartOf from <LinearLayout>
D:\Little pRincess\Temp\StagingArea\android-libraries\com.android.support.support-media-compat-26.1.0\res\layout\notification_template_big_media_narrow_custom.xml:59: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginEnd from <FrameLayout>
D:\Little pRincess\Temp\StagingArea\android-libraries\com.android.support.support-media-compat-26.1.0\res\layout\notification_template_big_media_narrow_custom.xml:49: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from <FrameLayout>
D:\Little pRincess\Temp\StagingArea\android-libraries\com.android.support.support-media-compat-26.1.0\res\layout\notification_template_big_media_narrow_custom.xml:49: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginEnd from <FrameLayout>
D:\Little pRincess\Temp\StagingArea\android-libraries\com.android.support.support-media-compat-26.1.0\res\layout\notification_template_big_media_narrow_custom.xml:30: note: removing attribute http://schemas.android.com/apk/res/android:layout_alignParentEnd from <include>
D:\Little pRincess\Temp\StagingArea\android-libraries\com.android.support.support-media-compat-26.1.0\res\layout\notification_template_big_media_narrow_custom.xml: note: using v17 attributes; synthesizing resource mylittleprincess.castle:layout/notification_template_big_media_narrow_custom for configuration v17.
D:\Little pRincess\Temp\StagingArea\android-libraries\com.android.support.support-compat-26.1.0\res\layout\notification_template_custom_big.xml:18: note: removing attribute http://schemas.android.com/apk/res/android:paddingEnd from <LinearLayout>
D:\Little pRincess\Temp\StagingArea\android-libraries\com.android.support.support-compat-26.1.0\res\layout\notification_template_custom_big.xml:32: note: removing attribute http://schemas.android.com/apk/res/android:paddingStart from <FrameLayout>
D:\Little pRincess\Temp\StagingArea\android-libraries\com.android.support.support-compat-26.1.0\res\layout-v16\notification_template_custom_big.xml:103: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from <LinearLayout>
D:\Little pRincess\Temp\StagingArea\android-libraries\com.android.support.support-compat-26.1.0\res\layout-v16\notification_template_custom_big.xml:95: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from <ImageView>
D:\Little pRincess\Temp\StagingArea\android-libraries\com.android.support.support-compat-26.1.0\res\layout-v16\notification_template_custom_big.xml:32: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from <LinearLayout>
D:\Little pRincess\Temp\StagingArea\android-libraries\com.android.support.support-compat-26.1.0\res\layout-v16\notification_template_custom_big.xml:51: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginEnd from <FrameLayout>
D:\Little pRincess\Temp\StagingArea\android-libraries\com.android.support.support-compat-26.1.0\res\layout-v16\notification_template_custom_big.xml:82: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from <ImageView>
D:\Little pRincess\Temp\StagingArea\android-libraries\com.android.support.support-compat-26.1.0\res\layout-v16\notification_template_custom_big.xml:41: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from <FrameLayout>
D:\Little pRincess\Temp\StagingArea\android-libraries\com.android.support.support-compat-26.1.0\res\layout-v16\notification_template_custom_big.xml:41: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginEnd from <FrameLayout>
D:\Little pRincess\Temp\StagingArea\android-libraries\com.android.support.support-compat-26.1.0\res\layout-v16\notification_template_custom_big.xml: note: using v17 attributes; synthesizing resource mylittleprincess.castle:layout/notification_template_custom_big for configuration v17.
D:\Little pRincess\Temp\StagingArea\android-libraries\com.android.support.support-media-compat-26.1.0\res\layout\notification_template_lines_media.xml:18: note: removing attribute http://schemas.android.com/apk/res/android:paddingEnd from <LinearLayout>
D:\Little pRincess\Temp\StagingArea\android-libraries\com.android.support.support-media-compat-26.1.0\res\layout\notification_template_lines_media.xml:81: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from <LinearLayout>
D:\Little pRincess\Temp\StagingArea\android-libraries\com.android.support.support-media-compat-26.1.0\res\layout\notification_template_lines_media.xml:100: note: removing attribute http://schemas.android.com/apk/res/android:paddingStart from <TextView>
D:\Little pRincess\Temp\StagingArea\android-libraries\com.android.support.support-media-compat-26.1.0\res\layout\notification_template_lines_media.xml:68: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from <TextView>
D:\Little pRincess\Temp\StagingArea\android-libraries\com.android.support.support-media-compat-26.1.0\res\layout\notification_template_lines_media.xml:27: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from <LinearLayout>
D:\Little pRincess\Temp\StagingArea\android-libraries\com.android.support.support-media-compat-26.1.0\res\layout\notification_template_lines_media.xml:56: note: removing attribute http://schemas.android.com/apk/res/android:paddingStart from <Chronometer>
D:\Little pRincess\Temp\StagingArea\android-libraries\com.android.support.support-media-compat-26.1.0\res\layout\notification_template_lines_media.xml:45: note: removing attribute http://schemas.android.com/apk/res/android:paddingStart from <DateTimeView>
D:\Little pRincess\Temp\StagingArea\android-libraries\com.android.support.support-media-compat-26.1.0\res\layout\notification_template_lines_media.xml: note: using v17 attributes; synthesizing resource mylittleprincess.castle:layout/notification_template_lines_media for configuration v17.
D:\Little pRincess\Temp\StagingArea\android-libraries\com.android.support.support-media-compat-26.1.0\res\layout\notification_template_media.xml:42: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginEnd from <include>
D:\Little pRincess\Temp\StagingArea\android-libraries\com.android.support.support-media-compat-26.1.0\res\layout\notification_template_media.xml:32: note: removing attribute http://schemas.android.com/apk/res/android:layoutDirection from <LinearLayout>
D:\Little pRincess\Temp\StagingArea\android-libraries\com.android.support.support-media-compat-26.1.0\res\layout\notification_template_media.xml: note: using v17 attributes; synthesizing resource mylittleprincess.castle:layout/notification_template_media for configuration v17.
D:\Little pRincess\Temp\StagingArea\android-libraries\com.android.support.support-media-compat-26.1.0\res\layout\notification_template_media_custom.xml:91: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginEnd from <include>
D:\Little pRincess\Temp\StagingArea\android-libraries\com.android.support.support-media-compat-26.1.0\res\layout\notification_template_media_custom.xml:81: note: removing attribute http://schemas.android.com/apk/res/android:layoutDirection from <LinearLayout>
D:\Little pRincess\Temp\StagingArea\android-libraries\com.android.support.support-media-compat-26.1.0\res\layout\notification_template_media_custom.xml:28: note: removing attribute http://schemas.android.com/apk/res/android:layout_toStartOf from <LinearLayout>
D:\Little pRincess\Temp\StagingArea\android-libraries\com.android.support.support-media-compat-26.1.0\res\layout\notification_template_media_custom.xml:48: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginEnd from <FrameLayout>
D:\Little pRincess\Temp\StagingArea\android-libraries\com.android.support.support-media-compat-26.1.0\res\layout\notification_template_media_custom.xml:38: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from <FrameLayout>
D:\Little pRincess\Temp\StagingArea\android-libraries\com.android.support.support-media-compat-26.1.0\res\layout\notification_template_media_custom.xml:38: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginEnd from <FrameLayout>
D:\Little pRincess\Temp\StagingArea\android-libraries\com.android.support.support-media-compat-26.1.0\res\layout\notification_template_media_custom.xml: note: using v17 attributes; synthesizing resource mylittleprincess.castle:layout/notification_template_media_custom for configuration v17.
D:\Little pRincess\Temp\StagingArea\android-libraries\com.google.android.gms.play-services-base-16.0.1\res\values\values.xml:34: error: Attribute "imageAspectRatioAdjust" already defined with incompatible format.
D:\Little pRincess\Temp\StagingArea\android-libraries\play-services-base-10.2.0\res\values\values.xml:34: Original attribute defined here.
D:\Little pRincess\Temp\StagingArea\android-libraries\com.google.android.gms.play-services-base-16.0.1\res\values\values.xml:47: error: Attribute "buttonSize" already defined with incompatible format.
D:\Little pRincess\Temp\StagingArea\android-libraries\play-services-base-10.2.0\res\values\values.xml:47: Original attribute defined here.
D:\Little pRincess\Temp\StagingArea\android-libraries\com.google.android.gms.play-services-base-16.0.1\res\values\values.xml:55: error: Attribute "colorScheme" already defined with incompatible format.
D:\Little pRincess\Temp\StagingArea\android-libraries\play-services-base-10.2.0\res\values\values.xml:55: Original attribute defined here.
]
Comment