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

查看:32
本文介绍了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:

警告 - 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天全站免登陆