Asset Packages/com.nianticspatial.nsdk/LICENSE has no meta file, but it's in an immutable folder

Include the following details (edit as applicable):

  • Platform category: Unity 2022.3.62f2
  • Device Model & OS version: Ex: Samsung A55
  • NSDK or Scaniverse version: 4.0.0-b2-26022000

When building the scene, I got two errors:

Asset Packages/com.nianticspatial.nsdk/README.md has no meta file, but it's in an immutable folder. The asset will be ignored.
Asset Packages/com.nianticspatial.nsdk/LICENSE has no meta file, but it's in an immutable folder. The asset will be ignored.

Any idea how to fix them?

Thanks!
Zhenlin

Hello,

I believe these errors should be benign. Are they blocking your from building your app?

Hi,

Yes, I cannot build it successfully.

Got it. Ok let me take some time to repro this and get back to you. I recall having run into this in the past but I don’t think it was blocking me from building. I’ll keep you posted.

Hi Zhenlin,

Could you share screenshots and maybe a video of the build process on your end. I see the message that you’re getting; I’m getting a similar message as well but it’s not an error it’s a warning which should not be blocking the build process.

Hi Jesus,

I cannot build it when using the Build And Run option in build setting for android.

I also find it successful to build when simply choosing Build.

Are you using our samples package and/or using a sample as a base for your project or is this a project you’ve created completely from scratch using NSDK? May I also know what AR features and components you’re currently using in your project?

Also, can you check the Project Validation tab and make sure everything there is set accordingly? It can be accessed via the NSDK tab on the top menu bar in Unity.

Hi Jesus,

Since I am familiar with ARDK3, I just created this new ARDK4 project from scratch two days ago, it could be compiled on a windows machine. Then yesterday I copied it to my Mac and planned to have a look at the new VPS2 feature.

However, I followed the wrong instruction and kept using the ARLocationManager from VPS1. I just downloaded one scanned site from scaniverse. Then I imported it into the editor, getting the manifest file and prefab. And it did not compile successfully and these no meta file error appeared, if I remember it correctly.

This following screenshot includes the project validation panel, and hierarchy list of game object in the scene now. I have removed the manifest file, site prefab in the asset folder and all the VPS1-related components in the scene. Now it only includes the original AR session and XR origin. I also attached one primitive cube under XR origin for testing. I believe now it is just a hello-world AR application, without any NSDK dedicated feature.

But when I use Build and Run option, it still gets these two errors and compilation fails now.

Hi Zhenlin,

At the moment the ARLocationManager functionality isn’t in NSDK 4. I would recommend looking over the VPS2 documentation to see how you can achieve a similar flow: Visual Positioning System 2 (VPS2) | Niantic Spatial Platform

I would suggest also removing the older 3.17 Location Manager and anything you did the old 3.x way since that sounds like it could be the source of the error.

Zhenlin,

I believe I may have found the solution. It seems that the reason those errors are appearing is that the README and LICENSE files were made in GitHub since that’s where the UPM is being hosted. When imported to Unity there is no meta file because the files were not created in Unity.

To get around this I did the following:

  1. Open Unity Hub
  2. Click the three dot menu all the way to the right of your project
  3. Click on “Reveal in Finder” if you’re on Mac or “Show in Explorer” if you’re on Windows
  4. Navigate to Library → PackageCache
  5. Locate the Niantic Spatial package and cut and paste it into project root directory Packages folder

The reason you want to Cut and Paste is that you only want to have one of these packages not duplicates. If you’re not seeing options to cut the folder (I didn’t see one on Mac), copy it and make sure you delete it after copying and then paste it into the Packages folder.

If the project is already open, it will refresh when you bring it back to the foreground and the errors should be gone now.

I did notice this followed up with some warnings but none of those warnings appeared to be any real issues. Regardless I let our team that works on the packaging know about this.

Thanks Jesus! I followed your solution instructions and it works now!

This topic was automatically closed 6 hours after the last reply. New replies are no longer allowed.