如何克服 Android Studio 无法解析 android 类的符号

编程入门 行业动态 更新时间:2024-10-14 20:25:49
本文介绍了如何克服 Android Studio 无法解析 android 类的符号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时送ChatGPT账号..

我第一次安装了 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 工作室错误:

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屋!

更多推荐

[db:关键词]

本文发布于:2023-04-15 05:28:14,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/857596.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:符号   Android   Studio   android

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!