无法在onCreate方法中解析符号

时间:2014-06-17 11:08:42

标签: java intellij-idea

我在Windows上使用Intellij IDEA 13.1。有一天,我发现我的代码有错误。像这样:

enter image description here

它说“无法解析符号”

我的项目结构:

enter image description here

enter image description here

有人可以帮助我吗?

1 个答案:

答案 0 :(得分:3)

看起来您需要添加:

import android.os.Bundle;

你的IDE应该为你做这个。我暂时没有使用IntelliJ,但我怀疑你需要按 Ctrl + Alt + O 来解决问题( source)。