I have just started learning to use Android Studio and using examples of login and registration codes given in various blogs.
Problem: Whenever I launch a new project, the default empty activity that gets loaded is named as MainActivity
. If I change the activity name later, it leads to various build errors. I am using AndroidStudio 3.3.2
.
I tried creating a project with no activity and tried adding an empty activity after the project is created. The activity got created however, when I try to run the app, I get an error Default activity not found
.
How do I create a project with custom name for activity?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…