无法解决Android的象征 - Android应用程序 - 的IntelliJ [英] cannot resolve android symbol - android app - intelliJ

查看:92
本文介绍了无法解决Android的象征 - Android应用程序 - 的IntelliJ的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我现在用的IntelliJ - 主意,开发Android应用程序。我创建了一个机器人模块项目,但这些:

I am using intellij-idea to develop android app. I created a project with an android module, but none of these :

import android.app.Activity;
import android.os.Bundle;

被认可,我得到无法解决Android的象征。我GOOGLE了这个问题,但我没有发现的言论似乎有debugg我的问题

are recognized, I get cannot resolve android symbol. I googled this issue but none of the remarks I found there seems to debugg my problem

推荐答案

你应该做的是,


1.  Select your android project
2.  press ctrl +alt + shift + S
3.  Select SDK from the project settings
4.  Check the files under the class path tab
5.  There must be android.jar ,res ,annotations.jar
Probably there should be missed one or several files in step 5.
Then,
6.  Go to Android SDK home path field and add your SDK folder again
files  even though  you have all the jars and still  you are getting the error ,then remove all the jars from the class path and add them again ( like in step 6).
7.  Build menu -Rebuild  your  project.

现在你的错误应该消失。

Now your errors should disappear.

这篇关于无法解决Android的象征 - Android应用程序 - 的IntelliJ的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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