Does anyone know how to solve this annoying error?
File C:\Users\.android\repositories.cfg could not be loaded.
System.Threading.ThreadHelper:ThreadStart()
It happens after adjusting Unity for AR development. Unity version is 2019.4, all JDK, NDK stuff has been installed, as well as AR Foundation & ARCore??
Ive seen similar questions being asked before but no real answers!!!
Simply open PowerShell and run New-Item ~\.android\repositories.cfg -Force(src).
By the way, is this showing in the console as an actual error (red) that’s hindering you playing/testing or just as a warning (yellow) that can be ignored?
.
I see the warning appear when I make a build, but also simply when browsing through the Android ProjectSettings. Not always though, so I can’t really report it as a bug.
I just fixed this error for myself by correcting the location of my “Keystores Dedicated Location” in Edit → Preferences → ExternalTools at the bottom.
What I did was - I went to C:\Users\YOUR USER NAME.android\ and then created a folder name repositories.cfg
It needs to be exactly the same name. Read the path I have given you and Put your username in “YOUR USER NAME”
I had this issues where cant touch any button in any scene of my android project.
I had a device simulator package running and also my cell phone sometimes running the project on it.
After adding some packages in my project suddenly the buttons stopped working in the game mode and the device simulator package. Got this error :
repositories.cfg could not be loaded. unity
Then connected my android phone and started working both device simulator package adn game mode
I had a similar problem for whatever reason my android SDK dumped the current api 26 version and demanded 28 but if I recall correctly I had it running on API 31 so I reinstalled 28 and it started working again. Something going on with the android updates coinciding with unity version updates I imagine. Don’t give up and don’t delete your project.