Unity + GoogleVR / Daydream:CommandInvokationFailure构建失败

时间:2016-06-18 05:26:33

标签: google-vr

我无法使用Unity 5.3.2或Unity 5.4.0b21构建GoogleVRForUnity.unitypackage项目。当我尝试构建时,我收到一个错误说:

  

CommandInvokationFailure:无法重新打包资源。

(详情如下)

我遵循的步骤是1)创建一个新项目2)导入unitypackage 3)切换到Android 4)更改捆绑标识符&方向5)构建(如此处所述:https://developers.google.com/vr/unity/get-started-controller#import_and_preview_the_demo_scene

我正在使用:

我得到的错误是:

  

CommandInvokationFailure:无法重新打包资源。   C:\ Users \ Robert \ AppData \ Local \ Android \ sdk \ build-tools \ 24.0.0 \ aapt.exe包--auto-add-overlay -v -f -m -J gen -M AndroidManifest.xml -S " RES" -I" C:/ Users / Robert / AppData / Local / Android / sdk \ platforms \ android-24 \ android.jar" -F bin / resources.ap_ --extra-packages com.google.vr.cardboard:vr.gvr.platform.unity -S" C:\ Users \ Robert \ Documents \ GitHub \ DaydreamTest \ Test2 \ Temp \ StagingArea \机器人的库\ gvr_android_common \ RES" -S" C:\ Users \ Robert \ Documents \ GitHub \ DaydreamTest \ Test2 \ Temp \ StagingArea \ android-libraries \ unitygvractivity \ res"

     

stderr的[

     

]   标准输出[   配置:    (默认)

     

文件:     AndroidManifest.xml中       Src :()AndroidManifest.xml

     

资源目录:   包括来自包的资源:C:\ Users \ Robert \ AppData \ Local \ Android \ sdk \ platforms \ android-24 \ android.jar   applyFileOverlay用于drawable   尝试overlaySet Key = ic_settings_48dp.png   尝试overlaySet Key = quantum_ic_arrow_back_white_24.png   尝试overlaySet Key = quantum_ic_arrow_downward_white_24.png   尝试overlaySet Key = quantum_ic_arrow_upward_white_24.png   尝试overlaySet Key = quantum_ic_settings_white_24.png   尝试overlaySet Key = rippleable.xml   尝试overlaySet Key = transition.png   尝试overlaySet Key = app_banner.png   尝试overlaySet Key = app_icon.png   applyFileOverlay用于布局   尝试overlaySet Key = back_button.xml   尝试overlaySet Key = transition_view.xml   尝试overlaySet Key = ui_layer.xml   尝试overlaySet Key = ui_layer_with_portrait_support.xml   applyFileOverlay for anim   applyFileOverlay for animator   applyFileOverlay用于插补器   applyFileOverlay用于转换   applyFileOverlay for xml   applyFileOverlay for raw   applyFileOverlay用于颜色   applyFileOverlay用于菜单   applyFileOverlay for mipmap   处理图片:res \ drawable-xhdpi \ app_banner.png   处理图片:res \ drawable \ app_icon.png   处理图片:C:\ Users \ Robert \ Documents \ GitHub \ DaydreamTest \ Test2 \ Temp \ StagingArea \ android-libraries \ gvr_android_common \ res \ drawable \ ic_settings_48dp.png   处理图片:C:\ Users \ Robert \ Documents \ GitHub \ DaydreamTest \ Test2 \ Temp \ StagingArea \ android-libraries \ gvr_android_common \ res \ drawable-mdpi-v4 \ quantum_ic_arrow_back_white_24.png       (已处理的图像C:\ Users \ Robert \ Documents \ GitHub \ DaydreamTest \ Test2 \ Temp \ StagingArea \ android-libraries \ gvr_android_common \ res \ drawable-mdpi-v4 \ quantum_ic_arrow_back_white_24.png:154%的源大小)   处理图片:C:\ Users \ Robert \ Documents \ GitHub \ DaydreamTest \ Test2 \ Temp \ StagingArea \ android-libraries \ gvr_android_common \ res \ drawable-hdpi-v4 \ quantum_ic_arrow_back_white_24.png       (已处理的图像C:\ Users \ Robert \ Documents \ GitHub \ DaydreamTest \ Test2 \ Temp \ StagingArea \ android-libraries \ gvr_android_common \ res \ drawable-hdpi-v4 \ quantum_ic_arrow_back_white_24.png:138%的源大小)   处理图片:C:\ Users \ Robert \ Documents \ GitHub \ DaydreamTest \ Test2 \ Temp \ StagingArea \ android-libraries \ gvr_android_common \ res \ drawable-xhdpi-v4 \ quantum_ic_arrow_back_white_24.png       (已处理的图像C:\ Users \ Robert \ Documents \ GitHub \ DaydreamTest \ Test2 \ Temp \ StagingArea \ android-libraries \ gvr_android_common \ res \ drawable-xhdpi-v4 \ quantum_ic_arrow_back_white_24.png:129%的源大小)   处理图片:C:\ Users \ Robert \ Documents \ GitHub \ DaydreamTest \ Test2 \ Temp \ StagingArea \ android-libraries \ gvr_android_common \ res \ drawable-xxhdpi-v4 \ quantum_ic_arrow_back_white_24.png       (已处理的图像C:\ Users \ Robert \ Documents \ GitHub \ DaydreamTest \ Test2 \ Temp \ StagingArea \ android-libraries \ gvr_android_common \ res \ drawable \ ic_settings_48dp.png:源的大小为172%)   处理图片:C:\ Users \ Robert \ Documents \ GitHub \ DaydreamTest \ Test2 \ Temp \ StagingArea \ android-libraries \ gvr_android_common \ res \ drawable-xxxhdpi-v4 \ quantum_ic_arrow_back_white_24.png       (已处理的图像C:\ Users \ Robert \ Documents \ GitHub \ DaydreamTest \ Test2 \ Temp \ StagingArea \ android-libraries \ gvr_android_common \ res \ drawable-xxhdpi-v4 \ quantum_ic_arrow_back_white_24.png:136%的源大小)   处理图片:C:\ Users \ Robert \ Documents \ GitHub \ DaydreamTest \ Test2 \ Temp \ StagingArea \ android-libraries \ gvr_android_common \ res \ drawable-ldrtl-mdpi-v17 \ quantum_ic_arrow_back_white_24.png       (已处理的图像C:\ Users \ Robert \ Documents \ GitHub \ DaydreamTest \ Test2 \ Temp \ StagingArea \ android-libraries \ gvr_android_common \ res \ drawable-ldrtl-mdpi-v17 \ quantum_ic_arrow_back_white_24.png:源的大小为152%)       (已处理的图像C:\ Users \ Robert \ Documents \ GitHub \ DaydreamTest \ Test2 \ Temp \ StagingArea \ android-libraries \ gvr_android_common \ res \ drawable-xxxhdpi-v4 \ quantum_ic_arrow_back_white_24.png:113%的源大小)   处理图片:C:\ Users \ Robert \ Documents \ GitHub \ DaydreamTest \ Test2 \ Temp \ StagingArea \ android-libraries \ gvr_android_common \ res \ drawable-ldrtl-hdpi-v17 \ quantum_ic_arrow_back_white_24.png   处理图片:C:\ Users \ Robert \ Documents \ GitHub \ DaydreamTest \ Test2 \ Temp \ StagingArea \ android-libraries \ gvr_android_common \ res \ drawable-ldrtl-xhdpi-v17 \ quantum_ic_arrow_back_white_24.png       (已处理的图像C:\ Users \ Robert \ Documents \ GitHub \ DaydreamTest \ Test2 \ Temp \ StagingArea \ android-libraries \ gvr_android_common \ res \ drawable-ldrtl-hdpi-v17 \ quantum_ic_arrow_back_white_24.png:140%大小的源)   处理图片:C:\ Users \ Robert \ Documents \ GitHub \ DaydreamTest \ Test2 \ Temp \ StagingArea \ android-libraries \ gvr_android_common \ res \ drawable-ldrtl-xxhdpi-v17 \ quantum_ic_arrow_back_white_24.png       (已处理的图像C:\ Users \ Robert \ Documents \ GitHub \ DaydreamTest \ Test2 \ Temp \ StagingArea \ android-libraries \ gvr_android_common \ res \ drawable-ldrtl-xhdpi-v17 \ quantum_ic_arrow_back_white_24.png:122%的源大小)   处理图片:C:\ Users \ Robert \ Documents \ GitHub \ DaydreamTest \ Test2 \ Temp \ StagingArea \ android-libraries \ gvr_android_common \ res \ drawable-ldrtl-xxxhdpi-v17 \ quantum_ic_arrow_back_white_24.png       (已处理的图像C:\ Users \ Robert \ Documents \ GitHub \ DaydreamTest \ Test2 \ Temp \ StagingArea \ android-libraries \ gvr_android_common \ res \ drawable-ldrtl-xxhdpi-v17 \ quantum_ic_arrow_back_white_24.png:133%的源大小)   处理图片:C:\ Users \ Robert \ Documents \ GitHub \ DaydreamTest \ Test2 \ Temp \ StagingArea \ android-libraries \ gvr_android_common \ res \ drawable-mdpi-v4 \ quantum_ic_arrow_downward_white_24.png       (已处理的图像C:\ Users \ Robert \ Documents \ GitHub \ DaydreamTest \ Test2 \ Temp \ StagingArea \ android-libraries \ gvr_android_common \ res \ drawable-ldrtl-xxxhdpi-v17 \ quantum_ic_arrow_back_white_24.png:109%的源大小)       (已处理的图像C:\ Users \ Robert \ Documents \ GitHub \ DaydreamTest \ Test2 \ Temp \ StagingArea \ android-libraries \ gvr_android_common \ res \ drawable-mdpi-v4 \ quantum_ic_arrow_downward_white_24.png:源的大小为146%)   处理图片:C:\ Users \ Robert \ Documents \ GitHub \ DaydreamTest \ Test2 \ Temp \ StagingArea \ android-libraries \ gvr_android_common \ res \ drawable-hdpi-v4 \ quantum_ic_arrow_downward_white_24.png   处理图片:C:\ Users \ Robert \ Documents \ GitHub \ DaydreamTest \ Test2 \ Temp \ StagingArea \ android-libraries \ gvr_android_common \ res \ drawable-xhdpi-v4 \ quantum_ic_arrow_downward_white_24.png       (已处理的图像C:\ Users \ Robert \ Documents \ GitHub \ DaydreamTest \ Test2 \ Temp \ StagingArea \ android-libraries \ gvr_android_common \ res \ drawable-hdpi-v4 \ quantum_ic_arrow_downward_white_24.png:源的大小为142%)   处理图片:C:\ Users \ Robert \ Documents \ GitHub \ DaydreamTest \ Test2 \ Temp \ StagingArea \ android-libraries \ gvr_android_common \ res \ drawable-xxhdpi-v4 \ quantum_ic_arrow_downward_white_24.png       (已处理的图像C:\ Users \ Robert \ Documents \ GitHub \ DaydreamTest \ Test2 \ Temp \ StagingArea \ android-libraries \ gvr_android_common \ res \ drawable-xhdpi-v4 \ quantum_ic_arrow_downward_white_24.png:源的大小为147%)   处理图片:C:\ Users \ Robert \ Documents \ GitHub \ DaydreamTest \ Test2 \ Temp \ StagingArea \ android-libraries \ gvr_android_common \ res \ drawable-xxxhdpi-v4 \ quantum_ic_arrow_downward_white_24.png       (已处理的图像C:\ Users \ Robert \ Documents \ GitHub \ DaydreamTest \ Test2 \ Temp \ StagingArea \ android-libraries \ gvr_android_common \ res \ drawable-xxhdpi-v4 \ quantum_ic_arrow_downward_white_24.png:135%大小的源)   处理图片:C:\ Users \ Robert \ Documents \ GitHub \ DaydreamTest \ Test2 \ Temp \ StagingArea \ android-libraries \ gvr_android_common \ res \ drawable-mdpi-v4 \ quantum_ic_arrow_upward_white_24.png       (已处理的图像C:\ Users \ Robert \ Documents \ GitHub \ DaydreamTest \ Test2 \ Temp \ StagingArea \ android-libraries \ gvr_android_common \ res \ drawable-mdpi-v4 \ quantum_ic_arrow_upward_white_24.png:源的130%大小)   处理图片:C:\ Users \ Robert \ Documents \ GitHub \ DaydreamTest \ Test2 \ Temp \ StagingArea \ android-libraries \ gvr_android_common \ res \ drawable-hdpi-v4 \ quantum_ic_arrow_upward_white_24.png       (已处理的图像C:\ Users \ Robert \ Documents \ GitHub \ DaydreamTest \ Test2 \ Temp \ StagingArea \ android-libraries \ gvr_android_common \ res \ drawable-hdpi-v4 \ quantum_ic_arrow_upward_white_24.png:141%的源大小)   处理图片:C:\ Users \ Robert \ Documents \ GitHub \ DaydreamTest \ Test2 \ Temp \ StagingArea \ android-libraries \ gvr_android_common \ res \ drawable-xhdpi-v4 \ quan   ]   UnityEditor.Android.Command.Run(System.Diagnostics.ProcessStartInfo psi,UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit,System.String errorMsg)   UnityEditor.Android.PostProcessor.Tasks.TasksCommon.Exec(System.String命令,System.String args,System.String workingdir,System.String errorMsg)   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.RunAllTask​​s(UnityEditor.Android.PostProcessor.PostProcessorContext context)   UnityEditor.HostView:OnGUI()

1 个答案:

答案 0 :(得分:0)

转到Android Studio,SDK Manager。删除Android Build工具。 然后,启动Unity并构建应用程序。它会要求您更新Android SDK。然后点击"是"。它应该在

之后起作用