I got the same error trying to Sync the project after an update.
(更新后尝试同步项目时出现相同的错误。)
What solved the problem was giving the right permission to the .android folder, instead of running the studio on root mode (It would reinstall all SDK under root if you don't specify that you already have it under you user). (解决该问题的方法是为.android文件夹提供正确的权限,而不是以root模式运行studio(如果您未指定用户已经拥有它,它将在root用户下重新安装所有SDK)。)
So, open the terminal and type:
(因此,打开终端并输入:)
sudo chown -R root:YOURUSERNAME /home/YOURUSERNAME_FOLDER/.android/
sudo chmod -R 775 /home/YOURUSERNAME_FOLDER/.android/
Easy fix, I hope it helps somebody.
(易于修复,希望对您有所帮助。)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…