java - android studio 找不到 "Activity"符号

标签 java android android-studio

我尝试使用 Android studio 创建和运行 hello world 新应用。 但是我无法编译,因为它说它无法解析 Activity 符号。

以及黑色模板中的其他基本符号。

我建议添加/配置 JDK。

我想我做错了,因为我尝试添加 JDK 并且问题再次出现。

enter image description here

如何解决?

更新1

找不到外部构建

enter image description here

enter image description here

Android 工作室 0.2.6

最佳答案

Android 工作室

文件 -> 使缓存无效/重新启动

它对我有用。

关于java - android studio 找不到 "Activity"符号,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18637559/

相关文章:

java - 尝试安装 e(fx)clipse,但没有任何效果

java - 将 channel 向上/向下按钮与 Android TV 应用程序链接

java - 在 Java9 中,终结器已被弃用,取而代之的是引入了清理器。两者有什么区别?

java - 收到警告 : Configuration 'compile' is obsolete and has been replaced with 'implementation'

android - 按下后退按钮时如何关闭 fragment ?

java - 我可以在方法入口处暂停 Java 运行时以便有时间通过​​调试器或分析器进行附加吗?

android - 在 Kotlin 中将时间戳值转换为 12/24 小时时间值

android - 无法在 attachBaseContext() 中使用 Dagger 注入(inject)对象来更新语言环境

android - 如何使用 Display.getSize 并支持 API 级别 10?

android - 错误 :Failed to find: com. nineoldandroids :library:2. 4.0