Stuck in a problem from past two days, Also re-installed the sdk but no success.
1. Checked the Build-Tools Folder , there is a folder: 27.0.3.
2. I am using Unity 2018.1.1f1.
3. Have been using JDK: "jdk1.8.0_172".
4. Working on Windows 10.
Unable to understand the reason.
CommandInvokationFailure: Failed to re-package resources.
C:\Users\Amit\AppData\Local\Android\sdk\build-tools\27.0.3\aapt.exe package --auto-add-overlay -v -f -m -J "gen" -M "AndroidManifest.xml" -S "res" -I "C:/Users/Amit/AppData/Local/Android/sdk\platforms\android-27\android.jar" -F bin/resources.ap_ --extra-packages android.arch.core:android.arch.lifecycle.livedata.core:android.arch.lifecycle:android.arch.lifecycle.viewmodel:com.clevertap.unity:android.support.graphics.drawable.animated:android.support.v7.appcompat:android.support.asynclayoutinflater:android.support.v7.cardview:android.support.coordinatorlayout:android.support.cursoradapter:android.support.customtabs:android.support.customview:android.support.design:android.support.design.animation:android.support.design.bottomappbar:android.support.design.bottomnavigation:android.support.design.bottomsheet:android.support.design.button:android.support.design.canvas:android.support.design.card:android.support.design.chip:android.support.design.circularreveal:android.support.design.circularreveal.cardview:android.support.design.circularreveal.coordinatorlayout:android.support.design.color:android.support.design.dialog:android.support.design.drawable:android.support.design.expandable:android.support.design.floatingactionbutton:android.support.design.internal:android.support.design.math:android.support.design.navigation:android.support.design.resources:android.support.design.ripple:android.support.design.shape:android.support.design.snackbar:android.support.design.stateful:android.support.design.textfield:android.support.design.textfield:android.support.design.theme:android.support.design.transformation:android.support.design.typography:android.support.design.widget:android.support.documentfile:android.support.drawerlayout:android.support.interpolator:android.support.loader:android.support.localbroadcastmanager:android.support.print:android.support.v7.recyclerview: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.transition:android.support.viewpager:com.google.android.gms.auth.api:com.google.android.gms.auth.api.phone:com.google.android.gms.auth:com.google.android.gms.base:com.google.android.gms.common:com.google.android.gms.gcm:com.google.android.gms.iid:com.google.android.gms.stats:com.google.android.gms.tasks:com.facebook:com.facebook.android:in.locomotion.plugins.login:com.aurodo.vehicles4d.resources -S "C:\Users\Amit\Desktop\Vehicles_Unity\Anwar\10-april\Vehicles10Apr2018\Vehicles\Temp\StagingArea\android-libraries\android.arch.core.runtime-1.1.0\res" -S "C:\Users\Amit\Desktop\Vehicles_Unity\Anwar\10-april\Vehicles10Apr2018\Vehicles\Temp\StagingArea\android-libraries\android.arch.lifecycle.livedata-core-1.1.0\res" -S "C:\Users\Amit\Desktop\Vehicles_Unity\Anwar\10-april\Vehicles10Apr2018\Vehicles\Temp\StagingArea\android-libraries\android.arch.lifecycle.runtime-1.1.0\res" -S "C:\Users\Amit\Desktop\Vehicles_Unity\Anwar\10-april\Vehicles10Apr2018\Vehicles\Temp\StagingArea\android-libraries\android.arch.lifecycle.viewmodel-1.1.0\res" -S "C:\Users\Amit\Desktop\Vehicles_Unity\Anwar\10-april\Vehicles10Apr2018\Vehicles\Temp\StagingArea\android-libraries\clevertapsdk-unity\res" -S "C:\Users\Amit\Desktop\Vehicles_Unity\Anwar\10-april\Vehicles10Apr2018\Vehicles\Temp\StagingArea\android-libraries\com.android.support.animated-vector-drawable-28.0.0-alpha1\res" -S "C:\Users\Amit\Desktop\Vehicles_Unity\Anwar\10-april\Vehicles10Apr2018\Vehicles\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-28.0.0-alpha1\res" -S "C:\Users\Amit\Desktop\Vehicles_Unity\Anwar\10-april\Vehicles10Apr2018\Vehicles\Temp\StagingArea\android-libraries\com.android.support.asynclayoutinflater-28.0.0-alpha1\res" -S "C:\Users\Amit\Desktop\Vehicles_Unity\Anwar\10-april\Vehicles10Apr2018\Vehicles\Temp\StagingArea\android-libraries\com.android.support.cardview-v7-28.0.0-alpha1\res" -S "C:\Users\Amit\Desktop\Vehicles_Unity\Anwar\10-april\Vehicles10Apr2018\Vehicles\Temp\StagingArea\android-libraries\com.android.support.coordinatorlayout-28.0.0-alpha1\res" -S "C:\Users\Amit\Desktop\Vehicles_Unity\Anwar\10-april\Vehicles10Apr2018\Vehicles\Temp\StagingArea\android-libraries\com.android.support.cursoradapter-28.0.0-alpha1\res" -S "C:\Users\Amit\Desktop\Vehicles_Unity\Anwar\10-april\Vehicles10Apr2018\Vehicles\Temp\StagingArea\android-libraries\com.android.support.customtabs-28.0.0-alpha1\res" -S "C:\Users\Amit\Desktop\Vehicles_Unity\Anwar\10-april\Vehicles10Apr2018\Vehicles\Temp\StagingArea\android-libraries\com.android.support.customview-28.0.0-alpha1\res" -S "C:\Users\Amit\Desktop\Vehicles_Unity\Anwar\10-april\Vehicles10Apr2018\Vehicles\Temp\StagingArea\android-libraries\com.android.support.design-28.0.0-alpha1\res" -S "C:\Users\Amit\Desktop\Vehicles_Unity\Anwar\10-april\Vehicles10Apr2018\Vehicles\Temp\StagingArea\android-libraries\com.android.support.design-animation-28.0.0-alpha1\res" -S "C:\Users\Amit\Desktop\Vehicles_Unity\Anwar\10-april\Vehicles10Apr2018\Vehicles\Temp\StagingArea\android-libraries\com.android.support.design-bottomappbar-28.0.0-alpha1\res" -S "C:\Users\Amit\Desktop\Vehicles_Unity\Anwar\10-april\Vehicles10Apr2018\Vehicles\Temp\StagingArea\android-libraries\com.android.support.design-bottomnavigation-28.0.0-alpha1\res" -S "C:\Users\Amit\Desktop\Vehicles_Unity\Anwar\10-april\Vehicles10Apr2018\Vehicles\Temp\StagingArea\android-libraries\com.android.support.design-bottomsheet-28.0.0-alpha1\res" -S "C:\Users\Amit\Desktop\Vehicles_Unity\Anwar\10-april\Vehicles10Apr2018\Vehicles\Temp\StagingArea\android-libraries\com.android.support.design-button-28.0.0-alpha1\res" -S "C:\Users\Amit\Desktop\Vehicles_Unity\Anwar\10-april\Vehicles10Apr2018\Vehicles\Temp\StagingArea\android-libraries\com.android.support.design-canvas-28.0.0-alpha1\res" -S "C:\Users\Amit\Desktop\Vehicles_Unity\Anwar\10-april\Vehicles10Apr2018\Vehicles\Temp\StagingArea\android-libraries\com.android.support.design-card-28.0.0-alpha1\res" -S "C:\Users\Amit\Desktop\Vehicles_Unity\Anwar\10-april\Vehicles10Apr2018\Vehicles\Temp\StagingArea\android-libraries\com.android.support.design-chip-28.0.0-alpha1\res" -S "C:\Users\Amit\Desktop\Vehicles_Unity\Anwar\10-april\Vehicles10Apr2018\Vehicles\Temp\StagingArea\android-libraries\com.android.support.design-circularreveal-28.0.0-alpha1\res" -S "C:\Users\Amit\Desktop\Vehicles_Unity\Anwar\10-april\Vehicles10Apr2018\Vehicles\Temp\StagingArea\android-libraries\com.android.support.design-circularreveal-cardview-28.0.0-alpha1\res" -S "C:\Users\Amit\Desktop\Vehicles_Unity\Anwar\10-april\Vehicles10Apr2018\Vehicles\Temp\StagingArea\android-libraries\com.android.support.design-circularreveal-coordinatorlayout-28.0.0-alpha1\res" -S "C:\Users\Amit\Desktop\Vehicles_Unity\Anwar\10-april\Vehicles10Apr2018\Vehicles\Temp\StagingArea\android-libraries\com.android.support.design-color-28.0.0-alpha1\res" -S "C:\Users\Amit\Desktop\Vehicles_Unity\Anwar\10-april\Vehicles10Apr2018\Vehicles\Temp\StagingArea\android-libraries\com.android.support.design-dialog-28.0.0-alpha1\res" -S "C:\Users\Amit\Desktop\Vehicles_Unity\Anwar\10-april\Vehicles10Apr2018\Vehicles\Temp\StagingArea\android-libraries\com.android.support.design-drawable-28.0.0-alpha1\res" -S "C:\Users\Amit\Desktop\Vehicles_Unity\Anwar\10-april\Vehicles10Apr2018\Vehicles\Temp\StagingArea\android-libraries\com.android.support.design-expandable-28.0.0-alpha1\res" -S "C:\Users\Amit\Desktop\Vehicles_Unity\Anwar\10-april\Vehicles10Apr2018\Vehicles\Temp\StagingArea\android-libraries\com.android.support.design-floatingactionbutton-28.0.0-alpha1\res" -S "C:\Users\Amit\Desktop\Vehicles_Unity\Anwar\10-april\Vehicles10Apr2018\Vehicles\Temp\StagingArea\android-libraries\com.android.support.design-internal-28.0.0-alpha1\res" -S "C:\Users\Amit\Desktop\Vehicles_Unity\Anwar\10-april\Vehicles10Apr2018\Vehicles\Temp\StagingArea\android-libraries\com.android.support.design-math-28.0.0-alpha1\res" -S "C:\Users\Amit\Desktop\Vehicles_Unity\Anwar\10-april\Vehicles10Apr2018\Vehicles\Temp\StagingArea\android-libraries\com.android.support.design-navigation-28.0.0-alpha1\res" -S "C:\Users\Amit\Desktop\Vehicles_Unity\Anwar\10-april\Vehicles10Apr2018\Vehicles\Temp\StagingArea\android-libraries\com.android.support.design-resources-28.0.0-alpha1\res" -S "C:\Users\Amit\Desktop\Vehicles_Unity\Anwar\10-april\Vehicles10Apr2018\Vehicles\Temp\StagingArea\android-libraries\com.android.support.design-ripple-28.0.0-alpha1\res" -S "C:\Users\Amit\Desktop\Vehicles_Unity\Anwar\10-april\Vehicles10Apr2018\Vehicles\Temp\StagingArea\android-libraries\com.android.support.design-shape-28.0.0-alpha1\res" -S "C:\Users\Amit\Desktop\Vehicles_Unity\Anwar\10-april\Vehicles10Apr2018\Vehicles\Temp\StagingArea\android-libraries\com.android.support.design-snackbar-28.0.0-alpha1\res" -S "C:\Users\Amit\Desktop\Vehicles_Unity\Anwar\10-april\Vehicles10Apr2018\Vehicles\Temp\StagingArea\android-libraries\com.android.support.design-stateful-28.0.0-alpha1\res" -S "C:\Users\Amit\Desktop\Vehicles_Unity\Anwar\10-april\Vehicles10Apr2018\Vehicles\Temp\StagingArea\android-libraries\com.android.support.design-tabs-28.0.0-alpha1\res" -S "C:\Users\Amit\Desktop\Vehicles_Unity\Anwar\10-april\Vehicles10Apr2018\Vehicles\Temp\StagingArea\android-libraries\com.android.support.design-textfield-28.0.0-alpha1\res" -S "C:\Users\Amit\Desktop\Vehicles_Unity\Anwar\10-april\Vehicles10Apr2018\Vehicles\Temp\StagingArea\android-libraries\com.android.support.design-theme-28.0.0-alpha1\res" -S "C:\Users\Amit\Desktop\Vehicles_Unity\Anwar\10-april\Vehicles10Apr2018\Vehicles\Temp\StagingArea\android-libraries\com.android.support.design-transformation-28.0.0-alpha1\res" -S "C:\Users\Amit\Desktop\Vehicles_Unity\Anwar\10-april\Vehicles10Apr2018\Vehicles\Temp\StagingArea\android-libraries\com.android.support.design-typography-28.0.0-alpha1\res" -S "C:\Users\Amit\Desktop\Vehicles_Unity\Anwar\10-april\Vehicles10Apr2018\Vehicles\Temp\StagingArea\android-libraries\com.android.support.design-widget-28.0.0-alpha1\res" -S "C:\Users\Amit\Desktop\Vehicles_Unity\Anwar\10-april\Vehicles10Apr2018\Vehicles\Temp\StagingArea\android-libraries\com.android.support.documentfile-28.0.0-alpha1\res" -S "C:\Users\Amit\Desktop\Vehicles_Unity\Anwar\10-april\Vehicles10Apr2018\Vehicles\Temp\StagingArea\android-libraries\com.android.support.drawerlayout-28.0.0-alpha1\res" -S "C:\Users\Amit\Desktop\Vehicles_Unity\Anwar\10-april\Vehicles10Apr2018\Vehicles\Temp\StagingArea\android-libraries\com.android.support.interpolator-28.0.0-alpha1\res" -S "C:\Users\Amit\Desktop\Vehicles_Unity\Anwar\10-april\Vehicles10Apr2018\Vehicles\Temp\StagingArea\android-libraries\com.android.support.loader-28.0.0-alpha1\res" -S "C:\Users\Amit\Desktop\Vehicles_Unity\Anwar\10-april\Vehicles10Apr2018\Vehicles\Temp\StagingArea\android-libraries\com.android.support.localbroadcastmanager-28.0.0-alpha1\res" -S "C:\Users\Amit\Desktop\Vehicles_Unity\Anwar\10-april\Vehicles10Apr2018\Vehicles\Temp\StagingArea\android-libraries\com.android.support.print-28.0.0-alpha1\res" -S "C:\Users\Amit\Desktop\Vehicles_Unity\Anwar\10-april\Vehicles10Apr2018\Vehicles\Temp\StagingArea\android-libraries\com.android.support.recyclerview-v7-28.0.0-alpha1\res" -S "C:\Users\Amit\Desktop\Vehicles_Unity\Anwar\10-april\Vehicles10Apr2018\Vehicles\Temp\StagingArea\android-libraries\com.android.support.slidingpanelayout-28.0.0-alpha1\res" -S "C:\Users\Amit\Desktop\Vehicles_Unity\Anwar\10-april\Vehicles10Apr2018\Vehicles\Temp\StagingArea\android-libraries\com.android.support.support-compat-28.0.0-alpha1\res" -S "C:\Users\Amit\Desktop\Vehicles_Unity\Anwar\10-april\Vehicles10Apr2018\Vehicles\Temp\StagingArea\android-libraries\com.android.support.support-core-ui-28.0.0-alpha1\res" -S "C:\Users\Amit\Desktop\Vehicles_Unity\Anwar\10-april\Vehicles10Apr2018\Vehicles\Temp\StagingArea\android-libraries\com.android.support.support-core-utils-28.0.0-alpha1\res" -S "C:\Users\Amit\Desktop\Vehicles_Unity\Anwar\10-april\Vehicles10Apr2018\Vehicles\Temp\StagingArea\android-libraries\com.android.support.support-fragment-28.0.0-alpha1\res" -S "C:\Users\Amit\Desktop\Vehicles_Unity\Anwar\10-april\Vehicles10Apr2018\Vehicles\Temp\StagingArea\android-libraries\com.android.support.support-media-compat-28.0.0-alpha1\res" -S "C:\Users\Amit\Desktop\Vehicles_Unity\Anwar\10-april\Vehicles10Apr2018\Vehicles\Temp\StagingArea\android-libraries\com.android.support.support-v4-28.0.0-alpha1\res" -S "C:\Users\Amit\Desktop\Vehicles_Unity\Anwar\10-april\Vehicles10Apr2018\Vehicles\Temp\StagingArea\android-libraries\com.android.support.support-vector-drawable-28.0.0-alpha1\res" -S "C:\Users\Amit\Desktop\Vehicles_Unity\Anwar\10-april\Vehicles10Apr2018\Vehicles\Temp\StagingArea\android-libraries\com.android.support.swiperefreshlayout-28.0.0-alpha1\res" -S "C:\Users\Amit\Desktop\Vehicles_Unity\Anwar\10-april\Vehicles10Apr2018\Vehicles\Temp\StagingArea\android-libraries\com.android.support.transition-28.0.0-alpha1\res" -S "C:\Users\Amit\Desktop\Vehicles_Unity\Anwar\10-april\Vehicles10Apr2018\Vehicles\Temp\StagingArea\android-libraries\com.android.support.viewpager-28.0.0-alpha1\res" -S "C:\Users\Amit\Desktop\Vehicles_Unity\Anwar\10-april\Vehicles10Apr2018\Vehicles\Temp\StagingArea\android-libraries\com.google.android.gms.play-services-auth-15.0.1\res" -S "C:\Users\Amit\Desktop\Vehicles_Unity\Anwar\10-april\Vehicles10Apr2018\Vehicles\Temp\StagingArea\android-libraries\com.google.android.gms.play-services-base-15.0.1\res" -S "C:\Users\Amit\Desktop\Vehicles_Unity\Anwar\10-april\Vehicles10Apr2018\Vehicles\Temp\StagingArea\android-libraries\com.google.android.gms.play-services-basement-15.0.1\res" -S "C:\Users\Amit\Desktop\Vehicles_Unity\Anwar\10-april\Vehicles10Apr2018\Vehicles\Temp\StagingArea\android-libraries\com.google.android.gms.play-services-gcm-15.0.1\res" -S "C:\Users\Amit\Desktop\Vehicles_Unity\Anwar\10-april\Vehicles10Apr2018\Vehicles\Temp\StagingArea\android-libraries\facebook-android-sdk-4.23.0\res" -S "C:\Users\Amit\Desktop\Vehicles_Unity\Anwar\10-april\Vehicles10Apr2018\Vehicles\Temp\StagingArea\android-libraries\facebook-android-wrapper-7.10.1\res" -S "C:\Users\Amit\Desktop\Vehicles_Unity\Anwar\10-april\Vehicles10Apr2018\Vehicles\Temp\StagingArea\android-libraries\google-login-kit\res" -S "C:\Users\Amit\Desktop\Vehicles_Unity\Anwar\10-april\Vehicles10Apr2018\Vehicles\Temp\StagingArea\android-libraries\unity-android-resources\res"
stderr[
C:\Users\Amit\Desktop\Vehicles_Unity\Anwar\10-april\Vehicles10Apr2018\Vehicles\Temp\StagingArea\android-libraries\com.android.support.design-textfield-28.0.0-alpha1\res\drawable-v21\avd_hide_password.xml:22: note: generating nested resource com.aurodo.vehicles4d:drawable/avd_hide_password_1
C:\Users\Amit\Desktop\Vehicles_Unity\Anwar\10-april\Vehicles10Apr2018\Vehicles\Temp\StagingArea\android-libraries\com.android.support.design-textfield-28.0.0-alpha1\res\drawable-v21\avd_hide_password.xml:57: note: generating nested resource com.aurodo.vehicles4d:drawable/avd_hide_password_2
C:\Users\Amit\Desktop\Vehicles_Unity\Anwar\10-april\Vehicles10Apr2018\Vehicles\Temp\StagingArea\android-libraries\com.android.support.design-textfield-28.0.0-alpha1\res\drawable-v21\avd_hide_password.xml:73: note: generating nested resource com.aurodo.vehicles4d:drawable/avd_hide_password_3
C:\Users\Amit\Desktop\Vehicles_Unity\Anwar\10-april\Vehicles10Apr2018\Vehicles\Temp\StagingArea\android-libraries\com.android.support.design-textfield-28.0.0-alpha1\res\drawable-v21\avd_show_password.xml:22: note: generating nested resource com.aurodo.vehicles4d:drawable/avd_show_password_1
C:\Users\Amit\Desktop\Vehicles_Unity\Anwar\10-april\Vehicles10Apr2018\Vehicles\Temp\StagingArea\android-libraries\com.android.support.design-textfield-28.0.0-alpha1\res\drawable-v21\avd_show_password.xml:56: note: generating nested resource com.aurodo.vehicles4d:drawable/avd_show_password_2
C:\Users\Amit\Desktop\Vehicles_Unity\Anwar\10-april\Vehicles10Apr2018\Vehicles\Temp\StagingArea\android-libraries\com.android.support.design-textfield-28.0.0-alpha1\res\drawable-v21\avd_show_password.xml:72: note: generating nested resource com.aurodo.vehicles4d:drawable/avd_show_password_3
Failed to generate resource table for split ''
C:\Users\Amit\Desktop\Vehicles_Unity\Anwar\10-april\Vehicles10Apr2018\Vehicles\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-28.0.0-alpha1\res\values-v28\values-v28.xml:7: error: Error: No resource found that matches the given name (at 'dialogCornerRadius' with value '?android:attr/dialogCornerRadius').
]
stdout[
Configurations:
(default)
Files:
drawable\close.png
Src: () C:\Users\Amit\Desktop\Vehicles_Unity\Anwar\10-april\Vehicles10Apr2018\Vehicles\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable\close.png
AndroidManifest.xml
Src: () AndroidManifest.xml
Resource Dirs:
Type drawable
drawable\close.png
Src: () C:\Users\Amit\Desktop\Vehicles_Unity\Anwar\10-april\Vehicles10Apr2018\Vehicles\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable\close.png
Including resources from package: C:\Users\Amit\AppData\Local\Android\sdk\platforms\android-27\android.jar
applyFileOverlay for drawable
trying overlaySet Key=com_facebook_auth_dialog_background.xml
trying overlaySet Key=com_facebook_auth_dialog_cancel_background.xml
trying overlaySet Key=com_facebook_auth_dialog_header_background.xml
Processing image: C:\Users\Amit\Desktop\Vehicles_Unity\Anwar\10-april\Vehicles10Apr2018\Vehicles\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable\close.png
(processed image C:\Users\Amit\Desktop\Vehicles_Unity\Anwar\10-april\Vehicles10Apr2018\Vehicles\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable\close.png: 45% size of source)
(new resource id design_layout_tab_text from C:\Users\Amit\Desktop\Vehicles_Unity\Anwar\10-april\Vehicles10Apr2018\Vehicles\Temp\StagingArea\android-libraries\com.android.support.design-tabs-28.0.0-alpha1\res\layout\design_layout_tab_text.xml)
(new resource id design_menu_item_action_area from C:\Users\Amit\Desktop\Vehicles_Unity\Anwar\10-april\Vehicles10Apr2018\Vehicles\Temp\StagingArea\android-libraries\com.android.support.design-internal-28.0.0-alpha1\res\layout\design_menu_item_action_area.xml)
]
exit code: 1
at UnityEditor.Android.Command.WaitForProgramToRun (UnityEditor.Utils.Program p, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) [0x00000] in <filename unknown>:0
at UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) [0x00000] in <filename unknown>:0
at UnityEditor.Android.PostProcessor.Tasks.TasksCommon.Exec (System.String command, System.String args, System.String workingdir, System.String errorMsg) [0x00000] in <filename unknown>:0
at UnityEditor.Android.PostProcessor.Tasks.BuildResources.CompileResources (UnityEditor.Android.PostProcessor.PostProcessorContext context) [0x00000] in <filename unknown>:0
at UnityEditor.Android.PostProcessor.Tasks.BuildResources.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) [0x00000] in <filename unknown>:0
at UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) [0x00000] in <filename unknown>:0
UnityEditor.BuildPipeline:BuildPlayerInternalNoCheck(String[], String, String, BuildTargetGroup, BuildTarget, BuildOptions, Boolean)
UnityEditor.DefaultBuildMethods:BuildPlayer(BuildPlayerOptions) (at C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:165)
UnityEditor.BuildPlayerWindow:CallBuildMethods(Boolean, BuildOptions) (at C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:89)
UnityEditor.BuildPlayerWindow:GUIBuildButtons(IBuildWindowExtension, Boolean, Boolean, Boolean, BuildPlatform) (at C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindow.cs:885)
UnityEditor.BuildPlayerWindow:ShowBuildTargetSettings() (at C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindow.cs:810)
UnityEditor.BuildPlayerWindow:OnGUI() (at C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindow.cs:415)
System.Reflection.MonoMethod:InternalInvoke(Object, Object[], Exception&)
Related
I'm trying to build v8 for Android on MacOS. I'm encountering an error during the build.
The build command that I am using is
ninja -C out.gn/arm.release d8
The arguments (as viewed from gn args out.gn/arm.release ) are as follows.
android_sdk_root= "/Users/joel/Library/Android/sdk/"
android_ndk_version = "r22"
v8_static_library = true
target_os = "android" # These lines need to be changed manually
target_cpu = "arm64" # as v8gen.py assumes a simulator build.
v8_target_cpu = "arm64"
is_component_build = false
The build is running into an error. I've got not clue how to get around this. When the error is encountered, this is the error that is produced. I noticed that the lines appear to all say
../../third_party/llvm-build/Release+Asserts/bin/llvm-ar: No such file or directory
Any idea how to get around this? The full output is as follows.
[1/2020] AR clang_x64_v8_arm64/obj/libv8_bigint.a
**FAILED: clang_x64_v8_arm64/obj/libv8_bigint.a
rm -f clang_x64_v8_arm64/obj/libv8_bigint.a && "../../third_party/llvm-build/Release+Asserts/bin/llvm-ar" -r -c -s -D clang_x64_v8_arm64/obj/libv8_bigint.a "#clang_x64_v8_arm64/obj/libv8_bigint.a.rsp"
/bin/sh: ../../third_party/llvm-build/Release+Asserts/bin/llvm-ar: No such file or directory
[2/2020] AR clang_x64_v8_arm64/obj/libv8_libbase.a
FAILED: clang_x64_v8_arm64/obj/libv8_libbase.a
rm -f clang_x64_v8_arm64/obj/libv8_libbase.a && "../../third_party/llvm-build/Release+Asserts/bin/llvm-ar" -r -c -s -D clang_x64_v8_arm64/obj/libv8_libbase.a "#clang_x64_v8_arm64/obj/libv8_libbase.a.rsp"**
/bin/sh: ../../third_party/llvm-build/Release+Asserts/bin/llvm-ar: No such file or directory
[3/2020] AR clang_x64_v8_arm64/obj/third_party/icu/libicuuc.a
FAILED: clang_x64_v8_arm64/obj/third_party/icu/libicuuc.a
rm -f clang_x64_v8_arm64/obj/third_party/icu/libicuuc.a && "../../third_party/llvm-build/Release+Asserts/bin/llvm-ar" -r -c -s -D clang_x64_v8_arm64/obj/third_party/icu/libicuuc.a "#clang_x64_v8_arm64/obj/third_party/icu/libicuuc.a.rsp"
/bin/sh: ../../third_party/llvm-build/Release+Asserts/bin/llvm-ar: No such file or directory
[4/2020] AR clang_x64_v8_arm64/obj/third_party/zlib/libchrome_zlib.a
FAILED: clang_x64_v8_arm64/obj/third_party/zlib/libchrome_zlib.a
rm -f clang_x64_v8_arm64/obj/third_party/zlib/libchrome_zlib.a && "../../third_party/llvm-build/Release+Asserts/bin/llvm-ar" -r -c -s -D clang_x64_v8_arm64/obj/third_party/zlib/libchrome_zlib.a "#clang_x64_v8_arm64/obj/third_party/zlib/libchrome_zlib.a.rsp"
/bin/sh: ../../third_party/llvm-build/Release+Asserts/bin/llvm-ar: No such file or directory
[5/2020] AR obj/libv8_libbase.a
FAILED: obj/libv8_libbase.a
rm -f obj/libv8_libbase.a && "../../third_party/llvm-build/Release+Asserts/bin/llvm-ar" -T -r -c -s -D obj/libv8_libbase.a #"obj/libv8_libbase.a.rsp"
/bin/sh: ../../third_party/llvm-build/Release+Asserts/bin/llvm-ar: No such file or directory
[6/2020] AR obj/libv8_bigint.a
FAILED: obj/libv8_bigint.a
rm -f obj/libv8_bigint.a && "../../third_party/llvm-build/Release+Asserts/bin/llvm-ar" -T -r -c -s -D obj/libv8_bigint.a #"obj/libv8_bigint.a.rsp"
/bin/sh: ../../third_party/llvm-build/Release+Asserts/bin/llvm-ar: No such file or directory
[7/2020] AR obj/third_party/icu/libicuuc.a
FAILED: obj/third_party/icu/libicuuc.a
rm -f obj/third_party/icu/libicuuc.a && "../../third_party/llvm-build/Release+Asserts/bin/llvm-ar" -T -r -c -s -D obj/third_party/icu/libicuuc.a #"obj/third_party/icu/libicuuc.a.rsp"
/bin/sh: ../../third_party/llvm-build/Release+Asserts/bin/llvm-ar: No such file or directory
[8/2020] AR obj/third_party/zlib/libchrome_zlib.a
FAILED: obj/third_party/zlib/libchrome_zlib.a
rm -f obj/third_party/zlib/libchrome_zlib.a && "../../third_party/llvm-build/Release+Asserts/bin/llvm-ar" -T -r -c -s -D obj/third_party/zlib/libchrome_zlib.a #"obj/third_party/zlib/libchrome_zlib.a.rsp"
/bin/sh: ../../third_party/llvm-build/Release+Asserts/bin/llvm-ar: No such file or directory
ninja: build stopped: subcommand failed.
Answer found. While instructions are provided on building V8 on macOS, those instructions refer to actions not supported anymore. For a successful build, use linux.
I am Using MacOS Catalina to build Android OS for Pixel 3a XL device. I am hitting a dead-end with the following "sepolicy" errors with segmentation fault.
[ 0% 23/22799] build out/target/product/bonito/obj/ETC/treble_sepolicy_tests_28.0_intermediates/treble_sepolicy_tests_28.0
FAILED: out/target/product/bonito/obj/ETC/treble_sepolicy_tests_28.0_intermediates/treble_sepolicy_tests_28.0
/bin/bash -c "(out/host/darwin-x86/bin/treble_sepolicy_tests -l out/host/darwin-x86/lib64/libsepolwrap.dylib -f out/target/product/bonito/obj/ETC/plat_file_contexts_intermediates/plat_file_contexts -f out/target/product/bonito/obj/ETC/vendor_file_contexts_intermediates/vendor_file_contexts -f out/target/product/bonito/obj/ETC/product_file_contexts_intermediates/product_file_contexts -b out/target/product/bonito/obj/ETC/built_plat_sepolicy_intermediates/built_plat_sepolicy -m out/target/product/bonito/obj/ETC/treble_sepolicy_tests_28.0_intermediates/28.0_mapping.combined.cil -o out/target/product/bonito/obj/ETC/treble_sepolicy_tests_28.0_intermediates/built_28.0_plat_sepolicy -p out/target/product/bonito/obj/ETC/sepolicy_intermediates/sepolicy -u out/target/product/bonito/obj/ETC/built_plat_sepolicy_intermediates/base_plat_pub_policy.cil ) && (touch out/target/product/bonito/obj/ETC/treble_sepolicy_tests_28.0_intermediates/treble_sepolicy_tests_28.0 )"
/bin/bash: line 1: 13824 Segmentation fault: 11 ( out/host/darwin-x86/bin/treble_sepolicy_tests -l out/host/darwin-x86/lib64/libsepolwrap.dylib -f out/target/product/bonito/obj/ETC/plat_file_contexts_intermediates/plat_file_contexts -f out/target/product/bonito/obj/ETC/vendor_file_contexts_intermediates/vendor_file_contexts -f out/target/product/bonito/obj/ETC/product_file_contexts_intermediates/product_file_contexts -b out/target/product/bonito/obj/ETC/built_plat_sepolicy_intermediates/built_plat_sepolicy -m out/target/product/bonito/obj/ETC/treble_sepolicy_tests_28.0_intermediates/28.0_mapping.combined.cil -o out/target/product/bonito/obj/ETC/treble_sepolicy_tests_28.0_intermediates/built_28.0_plat_sepolicy -p out/target/product/bonito/obj/ETC/sepolicy_intermediates/sepolicy -u out/target/product/bonito/obj/ETC/built_plat_sepolicy_intermediates/base_plat_pub_policy.cil )
[ 0% 28/22799] build out/target/product/bonito/obj/ETC/sepolicy_tests_intermediates/sepolicy_tests
FAILED: out/target/product/bonito/obj/ETC/sepolicy_tests_intermediates/sepolicy_tests
/bin/bash -c "(out/host/darwin-x86/bin/sepolicy_tests -l out/host/darwin-x86/lib64/libsepolwrap.dylib -f out/target/product/bonito/obj/ETC/plat_file_contexts_intermediates/plat_file_contexts -f out/target/product/bonito/obj/ETC/vendor_file_contexts_intermediates/vendor_file_contexts -p out/target/product/bonito/obj/ETC/sepolicy_intermediates/sepolicy ) && (touch out/target/product/bonito/obj/ETC/sepolicy_tests_intermediates/sepolicy_tests )"
/bin/bash: line 1: 13822 Segmentation fault: 11 ( out/host/darwin-x86/bin/sepolicy_tests -l out/host/darwin-x86/lib64/libsepolwrap.dylib -f out/target/product/bonito/obj/ETC/plat_file_contexts_intermediates/plat_file_contexts -f out/target/product/bonito/obj/ETC/vendor_file_contexts_intermediates/vendor_file_contexts -p out/target/product/bonito/obj/ETC/sepolicy_intermediates/sepolicy )
[ 0% 29/22799] build out/target/product/bonito/obj/ETC/treble_sepolicy_tests_26.0_intermediates/treble_sepolicy_tests_26.0
FAILED: out/target/product/bonito/obj/ETC/treble_sepolicy_tests_26.0_intermediates/treble_sepolicy_tests_26.0
/bin/bash -c "(out/host/darwin-x86/bin/treble_sepolicy_tests -l out/host/darwin-x86/lib64/libsepolwrap.dylib -f out/target/product/bonito/obj/ETC/plat_file_contexts_intermediates/plat_file_contexts -f out/target/product/bonito/obj/ETC/vendor_file_contexts_intermediates/vendor_file_contexts -f out/target/product/bonito/obj/ETC/product_file_contexts_intermediates/product_file_contexts -b out/target/product/bonito/obj/ETC/built_plat_sepolicy_intermediates/built_plat_sepolicy -m out/target/product/bonito/obj/ETC/treble_sepolicy_tests_26.0_intermediates/26.0_mapping.combined.cil -o out/target/product/bonito/obj/ETC/treble_sepolicy_tests_26.0_intermediates/built_26.0_plat_sepolicy -p out/target/product/bonito/obj/ETC/sepolicy_intermediates/sepolicy -u out/target/product/bonito/obj/ETC/built_plat_sepolicy_intermediates/base_plat_pub_policy.cil ) && (touch out/target/product/bonito/obj/ETC/treble_sepolicy_tests_26.0_intermediates/treble_sepolicy_tests_26.0 )"
/bin/bash: line 1: 13821 Segmentation fault: 11 ( out/host/darwin-x86/bin/treble_sepolicy_tests -l out/host/darwin-x86/lib64/libsepolwrap.dylib -f out/target/product/bonito/obj/ETC/plat_file_contexts_intermediates/plat_file_contexts -f out/target/product/bonito/obj/ETC/vendor_file_contexts_intermediates/vendor_file_contexts -f out/target/product/bonito/obj/ETC/product_file_contexts_intermediates/product_file_contexts -b out/target/product/bonito/obj/ETC/built_plat_sepolicy_intermediates/built_plat_sepolicy -m out/target/product/bonito/obj/ETC/treble_sepolicy_tests_26.0_intermediates/26.0_mapping.combined.cil -o out/target/product/bonito/obj/ETC/treble_sepolicy_tests_26.0_intermediates/built_26.0_plat_sepolicy -p out/target/product/bonito/obj/ETC/sepolicy_intermediates/sepolicy -u out/target/product/bonito/obj/ETC/built_plat_sepolicy_intermediates/base_plat_pub_policy.cil )
[ 0% 30/22799] build out/target/product/bonito/obj/ETC/treble_sepolicy_tests_27.0_intermediates/treble_sepolicy_tests_27.0
FAILED: out/target/product/bonito/obj/ETC/treble_sepolicy_tests_27.0_intermediates/treble_sepolicy_tests_27.0
/bin/bash -c "(out/host/darwin-x86/bin/treble_sepolicy_tests -l out/host/darwin-x86/lib64/libsepolwrap.dylib -f out/target/product/bonito/obj/ETC/plat_file_contexts_intermediates/plat_file_contexts -f out/target/product/bonito/obj/ETC/vendor_file_contexts_intermediates/vendor_file_contexts -f out/target/product/bonito/obj/ETC/product_file_contexts_intermediates/product_file_contexts -b out/target/product/bonito/obj/ETC/built_plat_sepolicy_intermediates/built_plat_sepolicy -m out/target/product/bonito/obj/ETC/treble_sepolicy_tests_27.0_intermediates/27.0_mapping.combined.cil -o out/target/product/bonito/obj/ETC/treble_sepolicy_tests_27.0_intermediates/built_27.0_plat_sepolicy -p out/target/product/bonito/obj/ETC/sepolicy_intermediates/sepolicy -u out/target/product/bonito/obj/ETC/built_plat_sepolicy_intermediates/base_plat_pub_policy.cil ) && (touch out/target/product/bonito/obj/ETC/treble_sepolicy_tests_27.0_intermediates/treble_sepolicy_tests_27.0 )"
/bin/bash: line 1: 13823 Segmentation fault: 11 ( out/host/darwin-x86/bin/treble_sepolicy_tests -l out/host/darwin-x86/lib64/libsepolwrap.dylib -f out/target/product/bonito/obj/ETC/plat_file_contexts_intermediates/plat_file_contexts -f out/target/product/bonito/obj/ETC/vendor_file_contexts_intermediates/vendor_file_contexts -f out/target/product/bonito/obj/ETC/product_file_contexts_intermediates/product_file_contexts -b out/target/product/bonito/obj/ETC/built_plat_sepolicy_intermediates/built_plat_sepolicy -m out/target/product/bonito/obj/ETC/treble_sepolicy_tests_27.0_intermediates/27.0_mapping.combined.cil -o out/target/product/bonito/obj/ETC/treble_sepolicy_tests_27.0_intermediates/built_27.0_plat_sepolicy -p out/target/product/bonito/obj/ETC/sepolicy_intermediates/sepolicy -u out/target/product/bonito/obj/ETC/built_plat_sepolicy_intermediates/base_plat_pub_policy.cil )
00:20:17 ninja failed with: exit status 1
failed to build some targets (25 seconds)
You can try:
make SELINUX_IGNORE_NEVERALLOWS=true
I am getting this error when i try to build my game for android.
What I've tried
I have looked at all the other answers on Stack Overflow but nothing seems to work
I have deleted the 24.0.0 Build tools
I have tried different jdk
I always get the same error trying to build for android.
I am using Unity 5.3.8 and Mac Yosemite
Error details
CommandInvokationFailure: Failed to re-package resources. See the
Console for
details./Users/admin/Library/Android/sdk/build-tools/android-4.4W/aapt
package --auto-add-overlay -v -f -m -J gen -M AndroidManifest.xml -S
"res" -I
"/Users/admin/Library/Android/sdk/platforms/android-26/android.jar" -F
bin/resources.ap_ --extra-packages
com.google.unity:android.support.v7.appcompat:com.facebook.android:com.google.android.gms:com.google.android.gms.ads.impl:com.google.android.gms.ads:com.google.android.gms.base:com.google.android.gms:com.google.android.gms.clearcut:com.google.android.gms.gass:com.google.android.gms.tasks:android.support.v4
-S "/Users/admin/Desktop/game/Temp/StagingArea/android-libraries/appcompat-v7-23.1.1/res"
-S "/Users/admin/Desktop/game/Temp/StagingArea/android-libraries/facebook/res"
-S "/Users/admin/Desktop/game/Temp/StagingArea/android-libraries/google-play-services_lib/res"
-S "/Users/admin/Desktop/game/Temp/StagingArea/android-libraries/play-services-ads-10.0.1/res"
-S "/Users/admin/Desktop/game/Temp/StagingArea/android-libraries/play-services-ads-lite-10.0.1/res"
-S "/Users/admin/Desktop/game/Temp/StagingArea/android-libraries/play-services-base-10.0.1/res"
-S "/Users/admin/Desktop/game/Temp/StagingArea/android-libraries/play-services-basement-10.0.1/res"
-S "/Users/admin/Desktop/game/Temp/StagingArea/android-libraries/play-services-clearcut-10.0.1/res"
-S "/Users/admin/Desktop/game/Temp/StagingArea/android-libraries/play-services-gass-10.0.1/res"
-S "/Users/admin/Desktop/game/Temp/StagingArea/android-libraries/play-services-tasks-10.0.1/res"
-S "/Users/admin/Desktop/game/Temp/StagingArea/android-libraries/support-v4-24.0.0/res"stderr[/Users/admin/Desktop/game/Temp/StagingArea/android-libraries/google-play-services_lib/res/values/admob_ads_attrs.xml:10: error: Attribute "adSize" has already been
defined/Users/admin/Desktop/game/Temp/StagingArea/android-libraries/google-play-services_lib/res/values/admob_ads_attrs.xml:17: error: Attribute "adSizes" has already been
defined/Users/admin/Desktop/game/Temp/StagingArea/android-libraries/google-play-services_lib/res/values/admob_ads_attrs.xml:20: error: Attribute "adUnitId" has already been
defined/Users/admin/Desktop/game/Temp/StagingArea/android-libraries/appcompat-v7-23.1.1/res/values/values.xml:110:
error: Attribute "theme" has already been
defined]stdout[Configurations
Unity program built on desktop MAC works on MAC
During build for Galaxy S7/GearVR the sig file is not accepted. Error as below:
CommandInvokationFailure: Android Asset Packaging Tool failed.
/Users/rpantera/Library/Android/sdk/build-tools/25.0.2/aapt package -v -f -F assets.ap_ -A assets --ignore-assets "!.svn:!.git:!.ds_store:!.scc:.:!CVS:!thumbs.db:!picasa.ini:!*~"
stderr[
assets/-Ï÷R1ë ¡BB0ó R-ö--tœ∂®- -`”.textClipping: error: Invalid filename. Unable to add.
]
stdout[
Found 35 custom asset files in assets
]
exit code: 1
UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.Android.PostProcessor.Tasks.TasksCommon.Exec (System.String command, System.String args, System.String workingdir, System.String errorMsg, Int32 retriesOnFailure)
UnityEditor.HostView:OnGUI()
Any reason for textClipping?
How to fix?
I have installed the latest unity 3D version(5.5.1) and the latest Android SDK. I haven't built my project on Android before - I believe I get an error when it tries to generate an Android Manifest XML:
Some suggestions for this error for old versions of Android wanted the build-tools folder of a particular version deleted but this still doesn't work. Could somebody help me out here?
CommandInvokationFailure: Failed to re-package resources.
C:\Users\price\AppData\Local\Android\sdk\build-tools\25.0.2\aapt.exe package --auto-add-overlay -v -f -m -J "gen" -M "AndroidManifest.xml" -S "res" -I "C:/Users/price/AppData/Local/Android/sdk\platforms\android-25\android.jar" -F bin/resources.ap_ --extra-packages com.onesignal:com.onesignal.onesignalsdk:com.google.android.gms.base:com.google.android.gms:com.google.android.gms.gcm:com.google.android.gms.location:android.support.v4 -S "C:\Users\price\OneDrive\Documents\FantasyMatchday_iOS\Temp\StagingArea\android-libraries\onesignal-unity\res" -S "C:\Users\price\OneDrive\Documents\FantasyMatchday_iOS\Temp\StagingArea\android-libraries\OneSignalConfig\res" -S "C:\Users\price\OneDrive\Documents\FantasyMatchday_iOS\Temp\StagingArea\android-libraries\play-services-base-8.3.0\res" -S "C:\Users\price\OneDrive\Documents\FantasyMatchday_iOS\Temp\StagingArea\android-libraries\play-services-basement-8.3.0\res" -S "C:\Users\price\OneDrive\Documents\FantasyMatchday_iOS\Temp\StagingArea\android-libraries\play-services-gcm-8.3.0\res" -S "C:\Users\price\OneDrive\Documents\FantasyMatchday_iOS\Temp\StagingArea\android-libraries\play-services-location-8.3.0\res" -S "C:\Users\price\OneDrive\Documents\FantasyMatchday_iOS\Temp\StagingArea\android-libraries\support-v4-23.1.0\res"
stderr[
AndroidManifest.xml:20: Tag <category> attribute name has invalid character '$'.
AndroidManifest.xml:51: Tag <permission> attribute name has invalid character '$'.
AndroidManifest.xml:52: Tag <uses-permission> attribute name has invalid character '$'.
]
stdout[
Configurations:
(default)
Files:
AndroidManifest.xml
Src: () AndroidManifest.xml
Resource Dirs:
Including resources from package: C:\Users\price\AppData\Local\Android\sdk\platforms\android-25\android.jar
applyFileOverlay for drawable
trying overlaySet Key=powered_by_google_dark.png
...
...