Build error with VR app for google cardboard
Hello I'm a beginner and got this error message when I built a test project.
Win32Exception: ApplicationName='C:\Users\jeonghwa\AppData\Local\Android\sdk\build-tools\26.0.1\aapt.exe', CommandLine='package --auto-add-overlay -v -f -m -J "gen" -M "AndroidManifest.xml" -S "res" -I "C:/Users/jeonghwa/AppData/Local/Android/sdk\platforms\android-22\android.jar" -F bin/resources.ap_ --extra-packages com.google.vr.cardboard:com.google.vr.keyboard:com.google.gvr.keyboardsupport:com.google.gvr.permissionsupport:com.unity3d.unitygvr -S "C:\Users\Public\Documents\Unity Projects\vrPractice_00\Temp\StagingArea\android-libraries\gvr\res" -S "C:\Users\Public\Documents\Unity Projects\vrPractice_00\Temp\StagingArea\android-libraries\gvr-keyboard\res" -S "C:\Users\Public\Documents\Unity Projects\vrPractice_00\Temp\StagingArea\android-libraries\gvr-keyboardsupport-release\res" -S "C:\Users\Public\Documents\Unity Projects\vrPractice_00\Temp\StagingArea\android-libraries\gvr-permissionsupport-release\res" -S "C:\Users\Public\Documents\Unity Projects\vrPractice_00\Temp\StagingArea\android-libraries\unitygvr\res"', CurrentDirectory='Temp/StagingArea' System.Diagnostics.Process.Start_noshell (System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process process) System.Diagnostics.Process.Start_common (System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process process) System.Diagnostics.Process.Start () (wrapper remoting-invoke-with-check) System.Diagnostics.Process:Start () UnityEditor.Utils.Program.Start (System.EventHandler exitCallback) (at C:/buildslave/unity/build/Editor/Mono/Utils/Program.cs:44) UnityEditor.Utils.Program.Start () (at C:/buildslave/unity/build/Editor/Mono/Utils/Program.cs:28) 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.Android.PostProcessor.Tasks.BuildResources.CompileResources (UnityEditor.Android.PostProcessor.PostProcessorContext context) UnityEditor.Android.PostProcessor.Tasks.BuildResources.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) UnityEditor.Android.PostProcessAndroidPlayer.PostProcess (BuildTarget target, System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry) UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (BuildPostProcessArgs args) UnityEditor.PostprocessBuildPlayer.Postprocess (BuildTargetGroup targetGroup, BuildTarget target, System.String installPath, System.String companyName, System.String productName, Int32 width, Int32 height, System.String downloadWebplayerUrl, System.String manualDownloadWebplayerUrl, BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.BuildReporting.BuildReport report) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:186) UnityEditor.HostView:OnGUI()
I'm developing with Unity 5.6.3 and have imported 'Google VR for Unity 1.7' package. I installed android SDK and JDK and designated the paths in the External tools, Preferences window. switched platform to Android, just created a cube and there was no problem when it's played. But build failed. This is the player settings.
Anybody got an idea how to fix it? thanks.
구글 카드보드 용으로 앱을 하나 빌드하려고 하는데 위와 같은 에러 메세지가 뜹니다. 누구 도와주실 분 계신가요?ㅠㅠ 유니티 5.6.3 버전 쓰고 있고 구글 VR 패키지 임포트 하고 각종 필요한 설정하고 빌드했습니다.
Answer by ermenda · Sep 14, 2017 at 06:21 PM
Check the permissions of the aapt file in the folder, make sure that all users can read and execute it. That's how I solved it. The same with zipalign and apksign, execute and read permissions for all users not only administrators.