Creating asset at path Assets/AndroidPerformanceTuner_gen/Runtime/Resources/SetupConfig.asset failed
- Dominant language
- C#
- Stars
- 62
- Forks
- 33
- PR merge metrics
- No merged PRs in 30d
Description
While trying to import any version of APT into Unity 2022.3, I constantly get this error:
`Creating asset at path Assets/AndroidPerformanceTuner_gen/Runtime/Resources/SetupConfig.asset failed`
I have tried installing it through:
1. UnityPackage
2. Importing .tgz
3. OpenUPM
The same error is replicated in all methods.
I have even tried creating a new project and the issue persists.
This happens for any version: 1.5.0, 1.5.2, etc.
I have deleted Library files and tried all other troubleshooting methods.
Error Details:
```
UnityException: Creating asset at path Assets/AndroidPerformanceTuner_gen/Runtime/Resources/SetupConfig.asset failed.
Google.Android.PerformanceTuner.Editor.FileUtil.CreateSetupConfig () (at ./Library/PackageCache/com.google.android.performancetuner@2.0.0/Editor/Scripts/FileUtil.cs:59)
Google.Android.PerformanceTuner.Editor.Initializer..cctor () (at ./Library/PackageCache/com.google.android.performancetuner@2.0.0/Editor/Scripts/Initializer.cs:107)
Rethrow as TypeInitializationException: The type initializer for 'Google.Android.PerformanceTuner.Editor.Initializer' threw an exception.
Google.Android.PerformanceTuner.Editor.AndroidPerformanceTunerWindow.OnGUI () (at ./Library/PackageCache/com.google.android.performancetuner@2.0.0/Editor/Scripts/AndroidPerformanceTunerWindow.cs:138)
UnityEditor.HostView.InvokeOnGUI (UnityEngine.Rect onGUIPosition) (at <2acbecbc299e4654adc94df891af51f2>:0)
UnityEditor.DockArea.DrawView (UnityEngine.Rect dockAreaRect) (at <2acbecbc299e4654adc94df891af51f2>:0)
UnityEditor.DockArea.OldOnGUI () (at <2acbecbc299e4654adc94df891af51f2>:0)
UnityEngine.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, UnityEngine.Matrix4x4 parentTransform, UnityEngine.Rect clippingRect, System.Boolean isComputingLayout, UnityEngine.Rect layoutSize, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <65927d60dd5f4df5850222879a8ed9a4>:0)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, UnityEngine.Matrix4x4 worldTransform, UnityEngine.Rect clippingRect, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <65927d60dd5f4df5850222879a8ed9a4>:0)
UnityEngine.UIElements.IMGUIContainer.DoIMGUIRepaint () (at <65927d60dd5f4df5850222879a8ed9a4>:0)
UnityEngine.UIElements.UIR.RenderChainCommand.ExecuteNonDrawMesh (UnityEngine.UIElements.UIR.DrawParams drawParams, System.Single pixelsPerPoint, System.Exception& immediateException) (at <65927d60dd5f4df5850222879a8ed9a4>:0)
Rethrow as ImmediateModeException
UnityEngine.UIElements.UIR.RenderChain.Render () (at <65927d60dd5f4df5850222879a8ed9a4>:0)
UnityEngine.UIElements.UIRRepaintUpdater.Update () (at <65927d60dd5f4df5850222879a8ed9a4>:0)
UnityEngine.UIElements.VisualTreeUpdater.UpdateVisualTreePhase (UnityEngine.UIElements.VisualTreeUpdatePhase phase) (at <65927d60dd5f4df5850222879a8ed9a4>:0)
UnityEngine.UIElements.Panel.UpdateForRepaint () (at <65927d60dd5f4df5850222879a8ed9a4>:0)
UnityEngine.UIElements.Panel.Repaint (UnityEngine.Event e) (at <65927d60dd5f4df5850222879a8ed9a4>:0)
UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at <65927d60dd5f4df5850222879a8ed9a4>:0)
UnityEngine.UIElements.UIElementsUtility.UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& eventHandled) (at <65927d60dd5f4df5850222879a8ed9a4>:0)
UnityEngine.UIElements.UIEventRegistration.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at <65927d60dd5f4df5850222879a8ed9a4>:0)
UnityEngine.UIElements.UIEventRegistration+<>c.<.cctor>b__1_2 (System.Int32 i, System.IntPtr ptr) (at <65927d60dd5f4df5850222879a8ed9a4>:0)
UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& result) (at <641e59e3e2ec4e2e8227279dd28903da>:0)
```
Contributor guide
Research direction
Reproduce the import failure in Unity 2022.3 and inspect the stack trace entry points in Editor/Scripts/FileUtil.cs at line 59 and Initializer.cs at line 107. Determine why Assets/AndroidPerformanceTuner_gen/Runtime/Resources/SetupConfig.asset cannot be created, then verify that importing the package completes without the exception.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, unity
- Domain
- game-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100