简体   繁体   中英

Android studio path error in Mac

I am getting this error when I open Android Studio:

System path '/Users/username/Library/Caches/AndroidStudio2.1' is invalid. If you have modified the 'idea.system.path' property please make sure it is correct, otherwise please re-install the IDE.

How can I fix it?

I fixed this issue by doing the following:

  • Open your "Applications" folder

  • Right click on Android Studio then choose "Show Package Contents"

  • Navigate to the "bin" folder

  • Open the "idea.properties" file with a text edit tool and add this property to the bottom of the file:

    idea.system.path='/Users/MacName/Library/Caches/AndroidStudio3.1'

    then save the file.

Run Android Studio again and it should work.

I fixed on my mac like this instead and it works:

Open your "Applications" folder Right click on Android Studio then choose "Show Package Contents" Navigate to the "bin" folder Open the "idea.properties" file with a text edit tool and add this property to the bottom of the file: idea.log.path=/Users/macUser/Library/Cache/AndroidStudio3.1

then save the file.

Run Android Studio again and it should work.

just check the folder permission in , Replace "xxx" with username

/Users/xxx/Library/Application Support/Google

It needs read/Write/Execute Permission. Will have to run sudo chmod 777 . to fix and relaunch the Android Studio

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM