首次尝试播放Cardboard SDK进行Unity演示时发生解析错误 [英] Parsing error when trying to play Cardboard SDK For Unity Demo First time
问题描述
我已按照此处的入门步骤进行操作: https://developers.google.com/cardboard/unity/get-started
I have followed the getting started steps here: https://developers.google.com/cardboard/unity/get-started
但是当我将.apk文件加载到手机中时,出现解析软件包时出现问题"错误.
But when I load the .apk file to my phone, I get a "There was a problem parsing the package" error.
我尝试在线搜索,我认为这意味着我的AndroidManifest.xml文件中的某个地方有问题吗?
I tried searching online and I assume it means I have an issue somewhere in my AndroidManifest.xml file?
我还有其他需要注意的入门指南没有提及的内容吗?
Is there anything else I need to be aware of that the get-started guide didn't mention?
推荐答案
找到了解决方案!
打开 YourProject/Assets/Plugins/Android/AndroidManifest.xml 中的Android清单文件,然后将 android:minSdkVersion的值更改为16 .默认为19.
Open the Android manifest file inside YourProject/Assets/Plugins/Android/AndroidManifest.xml and change the value of android:minSdkVersion to 16. It was 19 by default.
如果有帮助,我可以在Android版本4.1.2的Samsung Galaxy S2上进行此操作
If it helps I'm doing this on a Samsung Galaxy S2 with Android version 4.1.2
这篇关于首次尝试播放Cardboard SDK进行Unity演示时发生解析错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!