Default Activity not found in Android Studio

后端 未结 28 1140
盖世英雄少女心
盖世英雄少女心 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.

    0 讨论(0)
  • 2020-11-29 03:57

    My problem came down to an additional error that was popping up sometimes, stating

    Manifest Merger failed with multiple errors in Android Studio

    What ultimately was causing my problem was the fact that there were multiple manifests (a debug Manifest, and a manifest in the new module I had just imported), and they were not merging correctly due to this. After seeing this answer, I was able to analyze the merged manifest and find the cause of the issue and fix it.

    0 讨论(0)
  • 2020-11-29 03:58

    Press app --> Edit Configurations
    After that change value in Launch on "Nothing"

    0 讨论(0)
  • 2020-11-29 03:59

    Default Activity name changed (like SplashActivity -> SplashActivity1) and work for me

    0 讨论(0)
提交回复
热议问题