- Home /
Does anybody know how to fix (repositories.cfg could not be loaded) problem?
I tried connecting my phone to my laptop, but it doesnt work, instead I got this error:
File C:\Users\eKomisas.android\repositories.cfg could not be loaded. UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
May yall could help me out? Thanks ;)
I'm facing this exact problem after updating to Unity 2020.1.0f1. I was using Unity 2019.4.8f1 before and I didn't have any problem building for Android then. It's so annoying that the compilation for Android breaks often after an update of Unity.
Were you able to fix it? @dkub7
Answer by joseGuate97 · Aug 23, 2020 at 06:55 AM
You won't believe it, but for some reason, I had a 'using', that was giving me an error simultaneously, named using UnityEditorInternal;
. I'm not sure how that got added (I believe Visual Studio 2019's tools for Unity sometimes add 'usings' automatically as you're typing -- some of them unfortunately undesirable...).
I don't know what that exactly would have to do with the error that says .android\repositories.cfg could not be loaded.
, but it certainly resolved my issue.
I'm so sorry. I just realized that I was dealing with two different issues. The fix I mentioned did allow me to compile. That was showing up as an error, actually (Unity Editor's console said that something was wrong with using UnityEditorInternal;
). So now I've been able to build and run my app.
However, I just realized that .android\repositories.cfg could not be loaded.
is still in the console, but it shows as a warning. I can still compile the project in Android.
So I'm not sure if we're facing the same exact issue after all, given that you say in your case you're unable to even build your game.
Answer by AcidFz · Oct 24, 2020 at 03:19 PM
Did you find a solution or know why that was showing when going thru build?
Answer by nek0pi · May 19, 2021 at 10:44 AM
For anyone looking for an answer here is a good answer posted by @riad-krim, here is the link on the thread https://stackoverflow.com/questions/52692463/android-sdk-repositories-cfg-is-missing