如何克服Android Studio无法解析android类的符号 [英] how to overcome Android Studio cannot resolve symbol for android classes

查看:165
本文介绍了如何克服Android Studio无法解析android类的符号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是第一次安装Android Studio 0.8.2,但出现很多无法解析符号"错误. 新项目和从eclipse导出的项目均会发生错误.

I'v just installed Android Studio 0.8.2 for my first time and I have a lot of "Cannot resolve symbol" errors. The errors occur on both new projects and projects which were exported from eclipse.

JDK版本:jdk1.8.0_11

JDK version: jdk1.8.0_11

Android Studio错误:

Android studio errors:

项目的成绩文件

推荐答案

在菜单栏中

选择工具> -android> -SDK管理器

Select tools>-android>-SDK manager

并为您的项目的目标SDK版本下载SDK构建工具,SDK平台和Google API(Google API存储诸如"import android.view.Menu"之类的包)(如屏幕截图所示,为20) . 如果不确定要下载哪些项目,则可以选择所有项目.(当然,这将花费更多时间下载).

and download the SDK build tools, SDK platform and Google API's( the Google API stores packages such as "import android.view.Menu" etc.) for the target SDK version of your project(20 as shown in your screenshot). if you are not sure which items you have to download , you can select all of them.(will take more time to download of course).

重新启动IDE

这篇关于如何克服Android Studio无法解析android类的符号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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