質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.50%
Unity3D

Unity3Dは、ゲームや対話式の3Dアプリケーション、トレーニングシュミレーション、そして医学的・建築学的な技術を可視化する、商業用の開発プラットフォームです。

Q&A

解決済

1回答

505閲覧

unityでGoogleVRを使ってアプリをVR化したいのですがビルドのタイミングでエラーが発生します

tottyan

総合スコア14

Unity3D

Unity3Dは、ゲームや対話式の3Dアプリケーション、トレーニングシュミレーション、そして医学的・建築学的な技術を可視化する、商業用の開発プラットフォームです。

0グッド

0クリップ

投稿2017/08/22 04:20

###実現したい事

androidアプリをGVR Unity v1.50.0から実装されたGvrEditorEmulatorを使ってVR化したい。

###発生している問題・エラーメッセージ

unityでGoogleVRを使いたいのですがビルドのタイミングでエラーが発生します。 また関係あるのかはわかりませんが、ちょうど同じ時期にassetの GoogleVR→Demos→Scenes→GVRDemoをHierarchyに持ってった後消して別のscenesを入れたとたんに、 ビルドするたびHierarchyからScenceが消えるという事態が起こるようになりました。 この現象は再起動しても別のプロジェクトを立ち上げても直りません。 こちらの方も合わせて回答いただくとありがたいです。 あと一応確認なのですがGvrEditorEmulatorの使い方はは昔のバージョンの GvrVeiwerMainと同じようにassetからhierarchyに移してplayersettingの値を調整するだけでいいですかね? エラーメッセージは以下の通りです。エラーコードが長く規定文字数を超えてしまうので途中省略しています。、面倒ですがよろしくお願いします。 ers\shouh\AppData\Local\Android\sdk\build-tools\25.0.3\aapt.exe package --auto-add-overlay -v -f -m -J "gen" -M "AndroidManifest.xml" -S "res" -I "C:/Users/shouh/AppData/Local/Android/sdk\platforms\android-21\android.jar" -F bin/resources.ap_ --extra-packages com.google.vr.cardboard:com.google.vr.keyboard:com.google.gvr.keyboardsupport:com.google.gvr.permissionsupport:com.unity3d.unitygvr -S "C:\Users\Public\Documents\Unity Projects\VRShooting\Temp\StagingArea\android-libraries\gvr\res" -S "C:\Users\Public\Documents\Unity Projects\VRShooting\Temp\StagingArea\android-libraries\gvr-keyboard\res" -S "C:\Users\Public\Documents\Unity Projects\VRShooting\Temp\StagingArea\android-libraries\gvr-keyboardsupport-release\res" -S "C:\Users\Public\Documents\Unity Projects\VRShooting\Temp\StagingArea\android-libraries\gvr-permissionsupport-release\res" -S "C:\Users\Public\Documents\Unity Projects\VRShooting\Temp\StagingArea\android-libraries\unitygvr\res" stderr[ AndroidManifest.xml:18: error: No resource identifier found for attribute 'enableVrMode' in package 'android' AndroidManifest.xml:18: error: No resource identifier found for attribute 'resizeableActivity' in package 'android' AndroidManifest.xml:25: error: No resource identifier found for attribute 'enableVrMode' in package 'android' ] stdout[ Configurations: (default) nodpi-v4 Files: drawable\vr_icon_back.png Src: (nodpi-v4) C:\Users\Public\Documents\Unity Projects\VRShooting\Temp\StagingArea\android-libraries\unitygvr\res\drawable-nodpi-v4\vr_icon_back.png drawable\vr_icon_front.png Src: (nodpi-v4) C:\Users\Public\Documents\Unity Projects\VRShooting\Temp\StagingArea\android-libraries\unitygvr\res\drawable-nodpi-v4\vr_icon_front.png values\values.xml Src: () C:\Users\Public\Documents\Unity Projects\VRShooting\Temp\StagingArea\android-libraries\unitygvr\res\values\values.xml AndroidManifest.xml Src: () AndroidManifest.xml Resource Dirs: Type drawable drawable\vr_icon_back.png Src: (nodpi-v4) C:\Users\Public\Documents\Unity Projects\VRShooting\Temp\StagingArea\android-libraries\unitygvr\res\drawable-nodpi-v4\vr_icon_back.png drawable\vr_icon_front.png Src: (nodpi-v4) C:\Users\Public\Documents\Unity Projects\VRShooting\Temp\StagingArea\android-libraries\unitygvr\res\drawable-nodpi-v4\vr_icon_front.png Type values values\values.xml Src: () C:\Users\Public\Documents\Unity Projects\VRShooting\Temp\StagingArea\android-libraries\unitygvr\res\values\values.xml Including resources from package: C:\Users\shouh\AppData\Local\Android\sdk\platforms\android-21\android.jar applyFileOverlay for drawable trying overlaySet Key=quantum_ic_close_white_24.png trying overlaySet Key=quantum_ic_settings_white_24.png trying overlaySet Key=rippleable.xml trying overlaySet Key=transition.png trying overlaySet Key=app_banner.png trying overlaySet Key=app_icon.png applyFileOverlay for layout trying overlaySet Key=dialog.xml trying overlaySet Key=back_button.xml trying overlaySet Key=settings_button.xml trying overlaySet Key=transition_view.xml trying overlaySet Key=ui_layer.xml trying overlaySet Key=ui_layer_with_portrait_support.xml applyFileOverlay for anim applyFileOverlay for animator applyFileOverlay for interpolator applyFileOverlay for transition applyFileOverlay for xml applyFileOverlay for raw applyFileOverlay for color applyFileOverlay for menu applyFileOverlay for mipmap Processing image: res\drawable-xhdpi\app_banner.png Processing image: res\drawable-mdpi\app_icon.png 省略 Processing image: C:\Users\Public\Documents\Unity Projects\VRShooting\Temp\StagingArea\android-libraries\unitygvr\res\drawable-nodpi-v4\vr_icon_front.png (processed image res\drawable-xhdpi\app_banner.png: 93% size of source) (processed image C:\Users\Public\Documents\Unity Projects\VRShooting\Temp\StagingArea\android-libraries\gvr\res\drawable-hdpi-v4\transition.png: 64% size of source) (processed image C:\Users\Public\Documents\Unity Projects\VRShooting\Temp\StagingArea\android-libraries\unitygvr\res\drawable-nodpi-v4\vr_icon_back.png: 14% size of source) (processed image C:\Users\Public\Documents\Unity Projects\VRShooting\Temp\StagingArea\android-libraries\unitygvr\res\drawable-nodpi-v4\vr_icon_front.png: 52% size of source) (new resource id app_banner from xhdpi-v4\drawable\app_banner.png #generated) 省略 (new resource id ui_layer_with_portrait_support from C:\Users\Public\Documents\Unity Projects\VRShooting\Temp\StagingArea\android-libraries\gvr\res\layout-land\ui_layer_with_portrait_support.xml) ] exit code: 1 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, Int32 retriesOnFailure) UnityEditor.BuildPlayerWindow:BuildPlayerAndRun()

###該当のソースコード

言語 C# VRを導入する前は問題なく動いていたので、たぶんソースコードの問題ではないのでソースコードは省略します。

###補足情報(言語/FW/ツール等のバージョンなど)
windows10 unity5.6.1

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答1

0

ベストアンサー

Android SDK Platform-Tools 24 をインストールして Android 7.0 (API 24) 以上じゃないと動かないよ。らしいです。これでどうでしょうか?

The problem is that Daydream requires Android N(ougat) which is API 24

which you don't have installed. Once you install support for API 24 you
should be g2g.

https://github.com/googlevr/gvr-unity-sdk/issues/347

Download Android SDK Platform-Tools 24 and then Android 7.0 (API 24). You can do this from Android Studio. That should solve your problem.

https://stackoverflow.com/questions/41499912/no-resource-identifier-found-for-attribute-enablevrmode-in-package-android

###追記 ちょうど同じ時期にasset・・・

こちらについては触ったことないのですみませんがわかりません。

投稿2017/08/22 11:46

編集2017/08/22 11:48
IShix

総合スコア1724

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.50%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問