The activity must be exported or contain an intent-filter

后端 未结 10 1297
死守一世寂寞
死守一世寂寞 2020-12-01 07:12

when I tried to run my application its show the error below

Error running Dashboard: The activity must be exported or contain an intent-filter
10条回答
  •  孤独总比滥情好
    2020-12-01 07:56

    First check a Launch Activity is set in your 'manifest.xml' file has:

    
        
            
            
        
    
    

    If this is set correctly, next check your run/debug configuration is set to 'App',

    If the 'App' configuration is missing - you will need to add it by first selecting 'Edit Confurations'

    If you do not have a 'App' configuration you will need to create one, else select you 'App' configuration and skip the creating steps. Also if your configuration is corrupt you may need to delete it but first backup your project. To delete a corrupt configuration, select it by expanding the 'Android App' node and chose the '-' button.

    To create a new configuration, select the '+' button and select 'Android App'

    If you have just created the configuration you will be presented with the following default name value of 'Unnamed' and module will have the value '' then hit 'Apply' and 'OK'.

    Set this the name to 'App' and select 'app' as the module.

    Next select 'App' as the run configuration and Run.

    Thats it!

提交回复
热议问题