When creating a new Activity, you need to switch to androidmanifest.xml for reference. If you don’t want to switch to AndroidManifest for another step, We can use the shortcut keys to create the Activity class name by pressing Alt+Enter (window),option+Enter(MAC) to pop up the following selection: first Add Activity to manifest Add it directly to the androidmanifest.xml file.