1.將GoogleVRForUnity.unitypackage導入unityandroid
2.選擇demo中的VideoDemo導出ide
3.導出報錯3d
Console 顯示:
Warning: [Temp/StagingArea/AndroidManifest-main.xml:14, /Users/hufei/Projects/u3d/CardboardDemo/Temp/StagingArea/android-libraries/gvr-permissionsupport-release/AndroidManifest.xml:3] Main manifest has but library uses targetSdkVersion=’24’
] code
在Plugins 文件夾裏修改 android 的 manifest 設置xml
把 <uses-sdk android:minSdkVersion="19" android:targetSdkVersion="22" />
的22 改爲 24 便可get