Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Android Build error

Discussion in 'Android' started by jkampitakis, Mar 17, 2018.

  1. jkampitakis

    jkampitakis

    Joined:
    Dec 27, 2015
    Posts:
    56
    Hello, I am using Unity 5.6.5p2 and trying to build my game for Android but I am getting the following error


    CommandInvokationFailure: Failed to re-package resources.
    /Users/john/Library/Android/sdk/build-tools/27.0.3/aapt package --auto-add-overlay -v -f -m -J "gen" -M "AndroidManifest.xml" -S "res" -I "/Users/john/Library/Android/sdk/platforms/android-27/android.jar" -F bin/resources.ap_ --extra-packages com.adcolony.unitypluginpackage:com.chartboost.sdk.unity:com.onesignal.onesignalsdk:com.unity.channel.sdk.editor.xiaomi:android.arch.core:android.arch.lifecycle.livedata.core:android.arch.lifecycle:android.arch.lifecycle.viewmodel:android.support.graphics.drawable.animated:android.support.v7.appcompat:android.support.asynclayoutinflater:android.support.coordinatorlayout:android.support.cursoradapter:android.support.customtabs:android.support.customview:android.support.documentfile:android.support.drawerlayout:android.support.interpolator:android.support.loader:android.support.localbroadcastmanager:android.support.print:android.support.slidingpanelayout:android.support.compat:android.support.coreui:android.support.coreutils:android.support.fragment:android.support.mediacompat:android.support.v4:android.support.graphics.drawable:android.support.swiperefreshlayout:android.support.viewpager:com.google.android.gms.ads.impl:com.google.android.gms.admob.impl.license:com.google.android.gms.admob:com.google.android.gms.admob.license:com.google.android.gms.base:com.google.android.gms.base.license:com.google.android.gms:com.google.android.gms.common.license:com.google.android.gms.drive:com.google.android.gms.drive.license:com.google.android.gms.games:com.google.android.gms.games.license:com.google.android.gms.gass:com.google.android.gms.gass.license:com.google.android.gms.gcm:com.google.android.gms.gcm.license:com.google.android.gms.iid:com.google.android.gms.iid.license:com.google.android.gms.location:com.google.android.gms.location.license:com.google.android.gms.nearby:com.google.android.gms.nearby.license:com.google.android.gms.tasks:com.google.android.gms.tasks.license:com.everyplay.Everyplay:com.voxelbusters.androidnativeplugin:com.onesignal:com.voxelbusters.utility -S "/Users/john/Documents/llshooter/Temp/StagingArea/android-libraries/OneSignalConfig/res" -S "/Users/john/Documents/llshooter/Temp/StagingArea/android-libraries/UnityChannel/res" -S "/Users/john/Documents/llshooter/Temp/StagingArea/android-libraries/android.arch.core.runtime-1.1.0/res" -S "/Users/john/Documents/llshooter/Temp/StagingArea/android-libraries/android.arch.lifecycle.livedata-core-1.1.0/res" -S "/Users/john/Documents/llshooter/Temp/StagingArea/android-libraries/android.arch.lifecycle.runtime-1.1.0/res" -S "/Users/john/Documents/llshooter/Temp/StagingArea/android-libraries/android.arch.lifecycle.viewmodel-1.1.0/res" -S "/Users/john/Documents/llshooter/Temp/StagingArea/android-libraries/com.android.support.animated-vector-drawable-28.0.0-alpha1/res" -S "/Users/john/Documents/llshooter/Temp/StagingArea/android-libraries/com.android.support.appcompat-v7-28.0.0-alpha1/res" -S "/Users/john/Documents/llshooter/Temp/StagingArea/android-libraries/com.android.support.asynclayoutinflater-28.0.0-alpha1/res" -S "/Users/john/Documents/llshooter/Temp/StagingArea/android-libraries/com.android.support.coordinatorlayout-28.0.0-alpha1/res" -S "/Users/john/Documents/llshooter/Temp/StagingArea/android-libraries/com.android.support.cursoradapter-28.0.0-alpha1/res" -S "/Users/john/Documents/llshooter/Temp/StagingArea/android-libraries/com.android.support.customtabs-28.0.0-alpha1/res" -S "/Users/john/Documents/llshooter/Temp/StagingArea/android-libraries/com.android.support.customview-28.0.0-alpha1/res" -S "/Users/john/Documents/llshooter/Temp/StagingArea/android-libraries/com.android.support.documentfile-28.0.0-alpha1/res" -S "/Users/john/Documents/llshooter/Temp/StagingArea/android-libraries/com.android.support.drawerlayout-28.0.0-alpha1/res" -S "/Users/john/Documents/llshooter/Temp/StagingArea/android-libraries/com.android.support.interpolator-28.0.0-alpha1/res" -S "/Users/john/Documents/llshooter/Temp/StagingArea/android-libraries/com.android.support.loader-28.0.0-alpha1/res" -S "/Users/john/Documents/llshooter/Temp/StagingArea/android-libraries/com.android.support.localbroadcastmanager-28.0.0-alpha1/res" -S "/Users/john/Documents/llshooter/Temp/StagingArea/android-libraries/com.android.support.print-28.0.0-alpha1/res" -S "/Users/john/Documents/llshooter/Temp/StagingArea/android-libraries/com.android.support.slidingpanelayout-28.0.0-alpha1/res" -S "/Users/john/Documents/llshooter/Temp/StagingArea/android-libraries/com.android.support.support-compat-28.0.0-alpha1/res" -S "/Users/john/Documents/llshooter/Temp/StagingArea/android-libraries/com.android.support.support-core-ui-28.0.0-alpha1/res" -S "/Users/john/Documents/llshooter/Temp/StagingArea/android-libraries/com.android.support.support-core-utils-28.0.0-alpha1/res" -S "/Users/john/Documents/llshooter/Temp/StagingArea/android-libraries/com.android.support.support-fragment-28.0.0-alpha1/res" -S "/Users/john/Documents/llshooter/Temp/StagingArea/android-libraries/com.android.support.support-media-compat-28.0.0-alpha1/res" -S "/Users/john/Documents/llshooter/Temp/StagingArea/android-libraries/com.android.support.support-v4-28.0.0-alpha1/res" -S "/Users/john/Documents/llshooter/Temp/StagingArea/android-libraries/com.android.support.support-vector-drawable-28.0.0-alpha1/res" -S "/Users/john/Documents/llshooter/Temp/StagingArea/android-libraries/com.android.support.swiperefreshlayout-28.0.0-alpha1/res" -S "/Users/john/Documents/llshooter/Temp/StagingArea/android-libraries/com.android.support.viewpager-28.0.0-alpha1/res" -S "/Users/john/Documents/llshooter/Temp/StagingArea/android-libraries/com.google.android.gms.play-services-ads-11.8.0/res" -S "/Users/john/Documents/llshooter/Temp/StagingArea/android-libraries/com.google.android.gms.play-services-ads-lite-11.8.0/res" -S "/Users/john/Documents/llshooter/Temp/StagingArea/android-libraries/com.google.android.gms.play-services-base-11.8.0/res" -S "/Users/john/Documents/llshooter/Temp/StagingArea/android-libraries/com.google.android.gms.play-services-basement-11.8.0/res" -S "/Users/john/Documents/llshooter/Temp/StagingArea/android-libraries/com.google.android.gms.play-services-drive-11.8.0/res" -S "/Users/john/Documents/llshooter/Temp/StagingArea/android-libraries/com.google.android.gms.play-services-games-11.8.0/res" -S "/Users/john/Documents/llshooter/Temp/StagingArea/android-libraries/com.google.android.gms.play-services-gass-11.8.0/res" -S "/Users/john/Documents/llshooter/Temp/StagingArea/android-libraries/com.google.android.gms.play-services-gcm-11.8.0/res" -S "/Users/john/Documents/llshooter/Temp/StagingArea/android-libraries/com.google.android.gms.play-services-iid-11.8.0/res" -S "/Users/john/Documents/llshooter/Temp/StagingArea/android-libraries/com.google.android.gms.play-services-location-11.8.0/res" -S "/Users/john/Documents/llshooter/Temp/StagingArea/android-libraries/com.google.android.gms.play-services-nearby-11.8.0/res" -S "/Users/john/Documents/llshooter/Temp/StagingArea/android-libraries/com.google.android.gms.play-services-tasks-11.8.0/res" -S "/Users/john/Documents/llshooter/Temp/StagingArea/android-libraries/everyplay/res" -S "/Users/john/Documents/llshooter/Temp/StagingArea/android-libraries/native_plugins_lib/res" -S "/Users/john/Documents/llshooter/Temp/StagingArea/android-libraries/onesignal-unity/res"

    stderr[
    /Users/john/Documents/llshooter/Temp/StagingArea/android-libraries/com.android.support.appcompat-v7-28.0.0-alpha1/res/layout/abc_action_mode_close_item_material.xml:17: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginEnd from <ImageView>
    /Users/john/Documents/llshooter/Temp/StagingArea/android-libraries/com.android.support.appcompat-v7-28.0.0-alpha1/res/layout/abc_action_mode_close_item_material.xml:17: note: removing attribute http://schemas.android.com/apk/res/android:paddingStart from <ImageView>
    /Users/john/Documents/llshooter/Temp/StagingArea/android-libraries/com.android.support.appcompat-v7-28.0.0-alpha1/res/layout/abc_action_mode_close_item_material.xml: note: using v17 attributes; synthesizing resource com.lazyland.skylandsaga:layout/abc_action_mode_close_item_material for configuration v17.
    /Users/john/Documents/llshooter/Temp/StagingArea/android-libraries/com.android.support.appcompat-v7-28.0.0-alpha1/res/layout/abc_alert_dialog_button_bar_material.xml:18: note: removing attribute http://schemas.android.com/apk/res/android:scrollIndicators from <ScrollView>
    /Users/john/Documents/llshooter/Temp/StagingArea/android-libraries/com.android.support.appcompat-v7-28.0.0-alpha1/res/layout/abc_alert_dialog_button_bar_material.xml:26: note: removing attribute http://schemas.android.com/apk/res/android:layoutDirection from <android.support.v7.widget.ButtonBarLayout>
    /Users/john/Documents/llshooter/Temp/StagingArea/android-libraries/com.android.support.appcompat-v7-28.0.0-alpha1/res/layout/abc_alert_dialog_button_bar_material.xml: note: using v17 attributes; synthesizing resource com.lazyland.skylandsaga:layout/abc_alert_dialog_button_bar_material for configuration v17.
    /Users/john/Documents/llshooter/Temp/StagingArea/android-libraries/com.android.support.appcompat-v7-28.0.0-alpha1/res/layout/abc_alert_dialog_title_material.xml:45: note: removing attribute http://schemas.android.com/apk/res/android:textAlignment from <android.support.v7.widget.DialogTitle>
    /Users/john/Documents/llshooter/Temp/StagingArea/android-libraries/com.android.support.appcompat-v7-28.0.0-alpha1/res/layout/abc_alert_dialog_title_material.xml:36: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginEnd from <ImageView>
    /Users/john/Documents/llshooter/Temp/StagingArea/android-libraries/com.android.support.appcompat-v7-28.0.0-alpha1/res/layout/abc_alert_dialog_title_material.xml: note: using v17 attributes; synthesizing resource com.lazyland.skylandsaga:layout/abc_alert_dialog_title_material for configuration v17.
    /Users/john/Documents/llshooter/Temp/StagingArea/android-libraries/com.android.support.appcompat-v7-28.0.0-alpha1/res/layout/abc_dialog_title_material.xml:29: note: removing attribute http://schemas.android.com/apk/res/android:textAlignment from <TextView>
    /Users/john/Documents/llshooter/Temp/StagingArea/android-libraries/com.android.support.appcompat-v7-28.0.0-alpha1/res/layout/abc_dialog_title_material.xml: note: using v17 attributes; synthesizing resource com.lazyland.skylandsaga:layout/abc_dialog_title_material for configuration v17.
    /Users/john/Documents/llshooter/Temp/StagingArea/android-libraries/com.android.support.appcompat-v7-28.0.0-alpha1/res/layout/abc_popup_menu_header_item_layout.xml:24: note: removing attribute http://schemas.android.com/apk/res/android:textAlignment from <TextView>
    /Users/john/Documents/llshooter/Temp/StagingArea/android-libraries/com.android.support.appcompat-v7-28.0.0-alpha1/res/layout/abc_popup_menu_header_item_layout.xml: note: using v17 attributes; synthesizing resource com.lazyland.skylandsaga:layout/abc_popup_menu_header_item_layout for configuration v17.
    /Users/john/Documents/llshooter/Temp/StagingArea/android-libraries/com.android.support.appcompat-v7-28.0.0-alpha1/res/layout/abc_screen_toolbar.xml:27: note: removing attribute http://schemas.android.com/apk/res/android:touchscreenBlocksFocus from <android.support.v7.widget.ActionBarContainer>
    /Users/john/Documents/llshooter/Temp/StagingArea/android-libraries/com.android.support.appcompat-v7-28.0.0-alpha1/res/layout/abc_screen_toolbar.xml: note: using v21 attributes; synthesizing resource com.lazyland.skylandsaga:layout/abc_screen_toolbar for configuration v21.
    /Users/john/Documents/llshooter/Temp/StagingArea/android-libraries/com.android.support.appcompat-v7-28.0.0-alpha1/res/layout/abc_search_view.xml:47: note: removing attribute http://schemas.android.com/apk/res/android:layoutDirection from <LinearLayout>
    /Users/john/Documents/llshooter/Temp/StagingArea/android-libraries/com.android.support.appcompat-v7-28.0.0-alpha1/res/layout/abc_search_view.xml: note: using v17 attributes; synthesizing resource com.lazyland.skylandsaga:layout/abc_search_view for configuration v17.
    /Users/john/Documents/llshooter/Temp/StagingArea/android-libraries/com.android.support.appcompat-v7-28.0.0-alpha1/res/layout/abc_select_dialog_material.xml:23: note: removing attribute http://schemas.android.com/apk/res/android:textAlignment from <view>
    /Users/john/Documents/llshooter/Temp/StagingArea/android-libraries/com.android.support.appcompat-v7-28.0.0-alpha1/res/layout/abc_select_dialog_material.xml: note: using v17 attributes; synthesizing resource com.lazyland.skylandsaga:layout/abc_select_dialog_material for configuration v17.
    /Users/john/Documents/llshooter/Temp/StagingArea/android-libraries/com.android.support.appcompat-v7-28.0.0-alpha1/res/layout/abc_tooltip.xml:23: note: removing attribute http://schemas.android.com/apk/res/android:paddingStartfrom <TextView>
    /Users/john/Documents/llshooter/Temp/StagingArea/android-libraries/com.android.support.appcompat-v7-28.0.0-alpha1/res/layout/abc_tooltip.xml:23: note: removing attribute http://schemas.android.com/apk/res/android:paddingEndfrom <TextView>
    /Users/john/Documents/llshooter/Temp/StagingArea/android-libraries/com.android.support.appcompat-v7-28.0.0-alpha1/res/layout/abc_tooltip.xml: note: using v17 attributes; synthesizing resource com.lazyland.skylandsaga:layout/abc_tooltip for configuration v17.
    /Users/john/Documents/llshooter/Temp/StagingArea/android-libraries/com.android.support.customtabs-28.0.0-alpha1/res/layout/browser_actions_context_menu_page.xml:15: note: removing attribute http://schemas.android.com/apk/res/android:paddingStart from <TextView>
    /Users/john/Documents/llshooter/Temp/StagingArea/android-libraries/com.android.support.customtabs-28.0.0-alpha1/res/layout/browser_actions_context_menu_page.xml:15: note: removing attribute http://schemas.android.com/apk/res/android:paddingEnd from <TextView>
    /Users/john/Documents/llshooter/Temp/StagingArea/android-libraries/com.android.support.customtabs-28.0.0-alpha1/res/layout/browser_actions_context_menu_page.xml: note: using v17 attributes; synthesizing resource com.lazyland.skylandsaga:layout/browser_actions_context_menu_page for configuration v17.
    /Users/john/Documents/llshooter/Temp/StagingArea/android-libraries/com.android.support.customtabs-28.0.0-alpha1/res/layout/browser_actions_context_menu_row.xml:5: note: removing attribute http://schemas.android.com/apk/res/android:paddingStart from <LinearLayout>
    /Users/john/Documents/llshooter/Temp/StagingArea/android-libraries/com.android.support.customtabs-28.0.0-alpha1/res/layout/browser_actions_context_menu_row.xml:5: note: removing attribute http://schemas.android.com/apk/res/android:paddingEnd from <LinearLayout>
    /Users/john/Documents/llshooter/Temp/StagingArea/android-libraries/com.android.support.customtabs-28.0.0-alpha1/res/layout/browser_actions_context_menu_row.xml:21: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from <TextView>
    /Users/john/Documents/llshooter/Temp/StagingArea/android-libraries/com.android.support.customtabs-28.0.0-alpha1/res/layout/browser_actions_context_menu_row.xml: note: using v17 attributes; synthesizing resource com.lazyland.skylandsaga:layout/browser_actions_context_menu_row for configuration v17.
    /Users/john/Documents/llshooter/Temp/StagingArea/android-libraries/com.android.support.support-compat-28.0.0-alpha1/res/layout/notification_action.xml:17: note: removing attribute http://schemas.android.com/apk/res/android:paddingStart from <LinearLayout>
    /Users/john/Documents/llshooter/Temp/StagingArea/android-libraries/com.android.support.support-compat-28.0.0-alpha1/res/layout/notification_action.xml:32: note: removing attribute http://schemas.android.com/apk/res/android:paddingStart from <TextView>
    /Users/john/Documents/llshooter/Temp/StagingArea/android-libraries/com.android.support.support-compat-28.0.0-alpha1/res/layout/notification_action.xml: note: using v17 attributes; synthesizing resource com.lazyland.skylandsaga:layout/notification_action for configuration v17.
    /Users/john/Documents/llshooter/Temp/StagingArea/android-libraries/com.android.support.support-compat-28.0.0-alpha1/re<message truncated>



    Any ideas why this is happening?

    Kind regards,
    John.