google-ar / arcore-unity-extensions

Google ARCore Extensions and Geospatial Creator for Unity's AR Foundation
Other
347 stars 97 forks source link

Unity Editor Asset Database Refresh Error / .meta File Warnings #33

Open oDARKMATT3Ro opened 3 years ago

oDARKMATT3Ro commented 3 years ago

Hi everyone!

I am experiencing some issues with the Unity editor and getting some weird behavior when trying to build or open the project on a different computer. Removing and re-importing the ARCore Extensions package seems to fix things most of the time, but only until the next time I open up the project or open it on another pc. I have also tried uninstalling and then installing the ARCore Extensions package from the tarball, the fully extracted tarball package.json file, and also from the git repo url with the same results, as well as trying things like closing and re-opening the editor and re-importing all assets in the Unity editor, but nothing seems to be helping.

Specifically it looks like I am receiving an error in the Unity editor for asset database refresh related to the AndroidDependenciesHelper.cs file, as well as a few warnings related to the cloud_anchor_manifest.aar .meta file:

[Environment Details]

[Errors] Asset Packages/com.google.ar.core.arfoundation.extensions/Editor/BuildResources/ARCoreAndroidKeylessDependencies.xml has no meta file, but it's in an immutable folder. The asset will be ignored. UnityEditor.AssetDatabase:Refresh () Google.XR.ARCoreExtensions.Editor.Internal.AndroidDependenciesHelper:UpdateAndroidDependencies (bool,string) (at Library/PackageCache/com.google.ar.core.arfoundation.extensions@bab65af054/Editor/Scripts/Internal/AndroidDependenciesHelper.cs:97) Google.XR.ARCoreExtensions.Editor.Internal.AndroidKeylessPreprocessBuild:PreprocessAndroidBuild (bool) (at Library/PackageCache/com.google.ar.core.arfoundation.extensions@bab65af054/Editor/Scripts/Internal/AndroidKeylessPreprocessBuild.cs:74) Google.XR.ARCoreExtensions.Editor.Internal.AndroidKeylessPreprocessBuild:OnPreprocessBuild (UnityEditor.Build.Reporting.BuildReport) (at Library/PackageCache/com.google.ar.core.arfoundation.extensions@bab65af054/Editor/Scripts/Internal/AndroidKeylessPreprocessBuild.cs:99) UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

[Warnings] A meta data file (.meta) exists but its asset 'Packages/com.google.ar.core.arfoundation.extensions/Runtime/Plugins/cloud_anchor_manifest.aar' can't be found. When moving or deleting files outside of Unity, please ensure that the corresponding .meta file is moved or deleted along with it. UnityEditor.AssetDatabase:Refresh () Google.XR.ARCoreExtensions.Editor.Internal.CloudAnchorPreprocessBuild:SetApiKeyOnAndroid () (at Library/PackageCache/com.google.ar.core.arfoundation.extensions@bab65af054/Editor/Scripts/Internal/CloudAnchorPreprocessBuild.cs:188) Google.XR.ARCoreExtensions.Editor.Internal.CloudAnchorPreprocessBuild:PreprocessAndroidBuild () (at Library/PackageCache/com.google.ar.core.arfoundation.extensions@bab65af054/Editor/Scripts/Internal/CloudAnchorPreprocessBuild.cs:73) Google.XR.ARCoreExtensions.Editor.Internal.CloudAnchorPreprocessBuild:OnPreprocessBuild (UnityEditor.Build.Reporting.BuildReport) (at Library/PackageCache/com.google.ar.core.arfoundation.extensions@bab65af054/Editor/Scripts/Internal/CloudAnchorPreprocessBuild.cs:63) UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

Couldn't delete Packages/com.google.ar.core.arfoundation.extensions/Runtime/Plugins/cloud_anchor_manifest.aar.meta because it's in an immutable folder.

The package cache was invalidated and rebuilt because the following immutable asset(s) were unexpectedly altered: Packages/com.google.ar.core.arfoundation.extensions/Runtime/Plugins/cloud_anchor_manifest.aar

UnityEditor.AssetDatabase:Refresh () Google.XR.ARCoreExtensions.Editor.Internal.CloudAnchorPreprocessBuild:SetApiKeyOnAndroid () (at Library/PackageCache/com.google.ar.core.arfoundation.extensions@bab65af054/Editor/Scripts/Internal/CloudAnchorPreprocessBuild.cs:188) Google.XR.ARCoreExtensions.Editor.Internal.CloudAnchorPreprocessBuild:PreprocessAndroidBuild () (at Library/PackageCache/com.google.ar.core.arfoundation.extensions@bab65af054/Editor/Scripts/Internal/CloudAnchorPreprocessBuild.cs:73) Google.XR.ARCoreExtensions.Editor.Internal.CloudAnchorPreprocessBuild:OnPreprocessBuild (UnityEditor.Build.Reporting.BuildReport) (at Library/PackageCache/com.google.ar.core.arfoundation.extensions@bab65af054/Editor/Scripts/Internal/CloudAnchorPreprocessBuild.cs:63) UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

RatkoJ commented 3 years ago

Same here. The only thing I can add is that this happens when trying to use Keyless authentication strategy. When using the API Key I didn't get these errors. I don't know if this is related or not.

EDIT: for me, re-installing the extensions package from the extracted .tgz worked: https://github.com/google-ar/arcore-unity-extensions/issues/9#issuecomment-660546553