Unity Google Cardboard 构建失败:"No resource found that matches the given name"

Unity Google Cardboard build fails: "No resource found that matches the given name"

Unity 5.6.0b9,gvr 1.2

Android 的构建失败并显示:

AndroidManifest.xml:18: error: Error: No resource found that matches the given name (at 'theme' with value '@style/VrActivityTheme').

相信这个问题可能是我从 gvr 1.1.0 升级到 1.2 后出现的,但我按照说明进行了升级。

无论如何,我该如何诊断这个问题?

预计到达时间: 有问题的行来自 AndroidManifest.xml 在构建期间聚合并在临时区域中找到:

<application android:icon="@drawable/app_icon" android:label="@string/app_name" android:debuggable="true" android:isGame="false" android:theme="@style/VrActivityTheme">

问题似乎是标签

android:theme="@style/VrActivityTheme"

这没有出现在我为构建策划的 AndroidManifest.xml 中,所以我想知道如何发现是谁添加的以及为什么它有问题。

我很感激不使用测试版的建议,但我们正在尝试利用 5.6 中的原生 Cardboard 支持。如果我可以最终了解到 Unity beta 是问题所在,那么我可以通过其他方式解决它。

发帖人在这里:我不愿意离开 Unity 5.6 beta,但移动 Unity 5.5.2 确实解决了我们的问题,也许其他人也会这样。