Default Activity not found in Android Studio

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

    I just experienced the same error in Android Studio 1.5.1. and just found the source of the problem. I am not sure whether the cause was a human error or some strange glitch in the behaviour of the IDE, but none of the existing StackOverflow questions about this subject seemed to show anything about this so I figured I post it as an answer anyway.

    For me, either one of my team members or the IDE itself, had changed the launcher activities manifest entry, causing it to look like this:

            
                
                    
                    
                
            
    

    While it should, in fact, look like this:

            
                
                    
                     
                
            
    

    So please double, triple, quadruple check the format of your launcher activity in the manifest and you might be able to save yourself some time.

    Hope this helps.

    EDIT: I strongly suggest people not to go with the answers that suggest to manually select a launcher activity inside the configuration options of your module, as this caused the application to no longer be shown in the list of installed apps on both the Samsung Galaxy S5 Neo and the Samsung Galaxy S6 (at least for me).

提交回复
热议问题