Default Activity not found in Android Studio

后端 未结 28 1426
盖世英雄少女心
盖世英雄少女心 2020-11-29 03:22

I just upgraded to Android Studio 0.2.8 and I am getting an error that says \"Default Activity not found\" when I try to edit the run configurations.

When I launch A

28条回答
  •  一个人的身影
    2020-11-29 03:56

    1. In Android Studio switch to Project perspective (not Android perspective).

    2. Make sure that your project follows the gradle plugin's default structure (i.e. project_dir/app/src/main/java...)

    3. Delete all build folders and subfolders that you see.

    4. In the toolbar click Build -> Clean Project, then Build -> Rebuild Project.

    5. Try to run the project.

提交回复
热议问题