UNITYでAndroidのARアプリを開発する際に、以下のエラーに遭遇することがあります。
#エラー
・BuildFailedException: You have enabled the Vulkan graphics API, which is not supported by ARCore.
・Error building Player: BuildFailedException: You have enabled the Vulkan graphics API, which is not supported by ARCore.
・Build completed with a result of ‘Failed’ in 2 seconds (2137 ms)
・UnityEditor.BuildPlayerWindow+BuildMethodException: 2 errors
このエラーの解決法をご紹介します。
エラーの原因
Vulkan graphics APIがARCoreでサポートされていないためビルドできないということです。
解決法
[編集] → [プロジェクト設定] → [プレイヤー] → [Androidのタブ]

[その他の設定] → [自動グラフィックスAPI] のチェックを外す → [Vulkan] を選択 → [ – ]をクリック

以上です。
この状態で再度ビルド実行してみてください。
まとめ
今回は以下のエラーを解消する方法をご紹介しました。
#エラー
・BuildFailedException: You have enabled the Vulkan graphics API, which is not supported by ARCore.
・Error building Player: BuildFailedException: You have enabled the Vulkan graphics API, which is not supported by ARCore.
・Build completed with a result of ‘Failed’ in 2 seconds (2137 ms)
・UnityEditor.BuildPlayerWindow+BuildMethodException: 2 errors
この記事がお役に立てれば幸いです。
ではまた。
コメント