Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

FileNotFoundException: Unable to read anonymization settings, not reporting any values: /Users/mac/.android/analytics.settings (Permission denied)

I am using latest version of Android Studio on Mac. Whenever I open the app it shows me the above error. Can anyone help me in resolving it? Here is a picture as well:

enter image description here

like image 577
Apurv Adarsh Avatar asked Dec 18 '22 08:12

Apurv Adarsh


2 Answers

I had the same problem here, but into ubuntu 16.04.

Based on @madhan's comment I saw that the permissions of my .android was only for root user, so I did change the owner for that folder and that's it.

I used this command for change the folder owner:

sudo chown -R davidg:davidg .android/

Please replace "davidg:davidg" with your own user.

All working fine now.

I supose that at the first android studio start, it creates the file "analytics.settings" and maybe others into this folder but if permission is not granted for the user running the IDE then shows this error.

I hope this help you.

Before change the owner

After change the owner

like image 121
David Guerra Avatar answered Mar 16 '23 01:03

David Guerra


step1: find .android folder in my case it is in /home/pravin if you dont find it press ctrl+h to view the hidden folders

step2: pravin@pravin:~$ sudo chmod 777 /home/pravin/.android

just restart android studio done

like image 37
pravin rathod Avatar answered Mar 16 '23 00:03

pravin rathod