简体   繁体   English

无法解析onCreate方法中的符号

[英]Cannot resolve symbol in onCreate method

I'm using Intellij IDEA 13.1 on Windows. 我在Windows上使用Intellij IDEA 13.1。 And one day I found my code in errors. 有一天,我发现我的代码有错误。 Something like this: 像这样:

在此处输入图片说明

It says "Cannot resolve symbol" 它说“无法解析符号”

My Project Structure: 我的项目结构:

在此处输入图片说明

在此处输入图片说明

Can someone help me? 有人能帮我吗?

It looks like you need to add: 看来您需要添加:

import android.os.Bundle;

Your IDE ought to be doing this for you. 您的IDE应该为您执行此操作。 I've not used IntelliJ for a while, but I suspect you need to press Ctrl + Alt + O to fix the issue ( source ). 我已经有一段时间没有使用IntelliJ了,但是我怀疑您需要按Ctrl + Alt + O来解决此问题( )。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM