Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"flutter pub get" A required privilege is not held by the client

I keep getting this error on Android Studio flutter project, although flutter doctor command shows no issues!

    Cannot create link, path = 'C:\Users\UserName\AppData\Local\Pub\Cache\_temp\dir90f89940\ios\Classes\FLTFirebaseAuthPlugin.m' 
(OS Error: A required privilege is not held by the client.
, errno = 1314)
pub get failed (66; , errno = 1314))

I tried with pub upgrade which seams to get dependencies correctly and start updating them, but I didn't know why pub get give this error.

Update

A workaround seems to be running Android Studio as administrator!

like image 758
TiyebM Avatar asked Oct 03 '21 18:10

TiyebM


2 Answers

I have switched ON developer mode in Windows settings (Settings -> Update & security -> For developers) . It worked for me.

Like so:

enter image description here

like image 175
Piotr Avatar answered Oct 17 '22 14:10

Piotr


I'm using vscode I just opened it as administrator and everything works find.

like image 6
Mr. ZeroOne Avatar answered Oct 17 '22 16:10

Mr. ZeroOne