Android Studio:Google存储库更新失败.无法读取或创建安装属性文件 [英] Android Studio: Google repository update failing. Failed to read or create install properties file

查看:395
本文介绍了Android Studio:Google存储库更新失败.无法读取或创建安装属性文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在运行 Archlinux 系统,并且我的用户帐户具有对/opt/下的Android SDK和Android Studio文件夹的读写权限.我收到这些错误:

I am running an Archlinux system and my user account has read write permissions to the Android SDK and Android Studio folders under /opt/. I am getting these errors:

[76583]警告-dea.updater.SdkComponentSource-无法加载文件/home/enlighter/.android/repositories.cfg. [77786]警告-roid.tools.ndk.GradleWorkspace-NDK对项目"MyApplication"的支持被禁用,因为该项目不包含任何有效的本机配置. 警告-dea.updater.SdkComponentSource-无法加载文件/home/enlighter/.android/repositories.cfg.

[ 76583] WARN - dea.updater.SdkComponentSource - File /home/enlighter/.android/repositories.cfg could not be loaded. [ 77786] WARN - roid.tools.ndk.GradleWorkspace - NDK support for project 'MyApplication' is disabled because the project doesn't contain any valid native configurations. WARN - dea.updater.SdkComponentSource - File /home/enlighter/.android/repositories.cfg could not be loaded.

当我尝试将Google存储库从当前版本35更新到版本36时,出现此错误:

When I try to update the Google repositories to revision 36 from current 35, I get this error:

WARN-ectedPackagesStep $ CustomLogger-无法读取或创建安装属性文件.

WARN - ectedPackagesStep$CustomLogger - Failed to read or create install properties file.

更新失败,甚至没有下载所需的文件.我该如何解决?

And update fails without even downloading the required files. How do I fix this?

推荐答案

这感觉有点不对,但是到目前为止,只有sudo(sudo studio.sh)运行AndroidStudio才对我有用.您可以尝试仅运行sdk管理器,这也应该可以正常运行.仅对于SDK更新而言,这是必需的.常规使用Android Studio不需要sudo.

This feels a bit wrong, but running AndroidStudio with sudo (sudo studio.sh) was the only thing that worked for me so far. You can try running only the sdk manager, this should work as well. This is required only for the SDK update. Regular usage of Android Studio doesn't require sudo.

这篇关于Android Studio:Google存储库更新失败.无法读取或创建安装属性文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆