Android Studio 更新导致错误 [英] Android Studio updates have led to errors

查看:23
本文介绍了Android Studio 更新导致错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚将我的 Android Studio 更新到了当前的 0.3.1 版本.因此,我开始遇到一些我似乎无法理解的问题.首先,我收到有关启动 Android Studio 时插件问题的消息.消息如下:

I just updated my Android Studio to the current 0.3.1 version. Consequently I've started getting a few issues that I can't seem to understand. First I get this message about problems with the plugin on launching Android Studio. The message is as follows:

Plugin Error
Problems found loading plugins: Plugin "Android Designer" was not loaded: 
required plugin "Android Support" is disabled. 
Plugin "Google Cloud Tools For Android Studio" was not loaded: 
required plugin "Android Support" is disabled.  
Disable not loaded plugins Enable Android Support Open plugin manager

最令人担忧的 - 目前基本上已经停止了我的进步 - IDE 无法解析 R.xxx 中的 XML 文件.比如这一行:

The most worrying - which has essentially halted my progress at the moment - is that the IDE can't resolve XML files in the R.xxx. Such as this line:

  setContentView(R.layout.activity_lists);

它建议我使用 android.R,这会由于不兼容而引发更多错误.我不知道如何解决这个问题.在另一次发生这种情况时,进一步的更新会自动解决此问题.

It suggests I use android.R which brings up further errors due to incompatibility. I'm not sure how to fix this. On another occassion when this happened, further updates automatically resolved this issue.

推荐答案

在 Android SDK Manager 中,选择以下项目,然后单击 Install packages:

In Android SDK Manager, select the following items and then click Install packages:

附加功能/Google 存储库

Extras/Google Repository

Extras/Android 支持库

Extras/Android Support Repository

安装后重启Android studio

After install restart Android studio

这篇关于Android Studio 更新导致错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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