android - 为什么 Android Studio 不允许我创建 Java 类?

标签 android android-studio android-gradle-plugin

从 2 天前更新到 Android Studio 开始,它不再让我创建 Java 类了。现在的类现在有一个奇怪的符号。

我尝试使用不同的配置多次导出和导入,但都没有成功。有什么建议吗?

这里有两张截图:enter image description here enter image description here

这是我的 Android Studio 项目的结构。 AndroidManifest 在正确的位置: enter image description here

最佳答案

右键src文件夹,Mark Directory As -> Source Root.

关于android - 为什么 Android Studio 不允许我创建 Java 类?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20588040/

相关文章:

android - 无法在 Google Play 管理中心更新应用内商品

java - Android Studio 创建一个不包括 jniLibs 的构建变体/类型?

java - 在 Android Studio 1.5 中设置 NDK 开发

android - 无法在 Android Studio 北极狐中隐藏弹出窗口提取方法

android - 如何获取附加到窗口管理器的演示文稿的 Root View ?

android - 错误 :(21, 0) 找不到 Gradle DSL 方法:

android - 在 Android Studio 中找不到符号类

android - 测试生成特定 xml junit 文件的 android 应用程序

java - org.gradle.execution.MultipleBuildFailures 使用@Query Room Persistence Library 时

c# - 使用 Azure SQL Server 创建 Web API