我无法使用 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 )
我在用:
来自 github 的最新版本(https://github.com/googlevr/gvr-unity-sdk v0.8.1)
jdk1.8.0_91
安装了最新的 Android Studio (2.1)
已安装 Android 6.X (N) API 24 Rev 1 SDK
我得到的错误是这样的:
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\android-libraries\gvr_android_common\res" -S "C:\Users\Robert\Documents\ GitHub\DaydreamTest\Test2\Temp\StagingArea\android-libraries\unitygvractivity\res"
标准错误[
] 标准输出 [ 配置:(默认)
文件:AndroidManifest.xml 源代码:() AndroidManifest.xml
资源目录:包括包中的资源:C:\Users\Robert\AppData\Local\Android\sdk\platforms\android-24\android.jar applyFileOverlay for 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=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 for interpolator applyFileOverlay for xml applyFileOverlay for raw applyFileOverlay applyFileOverlay for menu 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-库\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- library\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-库\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 command, System.String args, System.String workingdir, System.String errorMsg) UnityEditor.Android.PostProcessor.Tasks.BuildResources.CompileResources ( UnityEditor.Android.PostProcessor.PostProcessorContext 上下文)UnityEditor.Android.PostProcessor.Tasks.BuildResources。执行 (UnityEditor.Android.PostProcessor.PostProcessorContext 上下文) UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext 上下文) UnityEditor.HostView:OnGUI()