Android Studio 2.1 Error while Lauching activity - Default Activity not found

3

The problem itself what I have! It is that at the moment of compiling my application, with the AVD Manager or even with the Genymotion Device Manager plugin, it does everything it has to do but when launching the application or opening it it pulls error. And it's not such a big project, it's just testing.

Fecha (Date): Launching app
No local changes, not deploying APK
Could not identify launch activity: Default Activity not found
Error while Launching activity
    
asked by Samuel Mena 11.08.2016 в 06:36
source

1 answer

3

The " Default Activity not found " error triggers when there is no activity marked as primary ( MAIN ) in AndroidManifest.xml .

You should have a statement like the following in <application> </application> :

<activity
        android:name="com.tu.package.NombreDeActividad"
        android:label="@string/nombre_de_la_app">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
</activity>
    
answered by 11.08.2016 / 07:56
source