はじめに
Meta XR SDKを入れたProjectをclone後に読み込むとエラーが発生したので、エラーの解消方法を記録します。
An error occurred while resolving packages:
One or more packages could not be added to the local file system:
com.meta.xr.sdk.core: Cannot download the package. Your account does not grant permission to use the package. Please visit the Asset Store to acquire the package and add it to your account:
Access to 'https://download.packages.unity.com/com.meta.xr.sdk.core/-/com.meta.xr.sdk.core-***.tgz' was denied
com.meta.xr.sdk.interaction: Cannot download the package. Your account does not gr...
(For the full error message, see the editor log file located at [C:/Users/***/AppData/Local/Unity/Editor/Editor.log])
Click on Retry to relaunch Unity and reopen your project.
Click on Continue to launch Unity. Some or all packages may not be imported which may cause compilation errors.
エラー解消方法
- UnityEditorで利用しているアカウントでアセットストアにログインし、対象のアセットを購入(無料)する
- キャッシュの影響で即時パッケージをインストールできない様です、パッケージがインストールされない場合は以下の方法でキャッシュをリセットしてください。
- UnityEditor上でアカウントのログアウト&ログイン
- Unity再起動
- PC再起動
- Libraryディレクトリの削除
- 新規プロジェクトで対象のSDKをインポート