简体   繁体   中英

Why can't I create a Java Class in Android Studio

I am trying to create a new Java Class in one of my folders in Android Studio. When I right click, and click the option 'new', it offers me the option of creating a new C++ class, but does not offer any option to creating a Java Class.

截图

How do I create a new Java Class?

就像注释所建议的那样,您可能会遇到构建问题,但是您可以创建一个活动,而不能扩展该活动类以拥有一个普通的Java类。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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