Android Studio Error running 'app': Default Activity not found

3728 views android
3

I am using Android Studio 3.4.2 on macOS 10.14.5. Every time I try to run my app, I get the following error:

Error running 'app': Default Activity not found

I tried this solution already (Error: Default Activity Not Found) but it anyway did not fix anything for me.

Any help?

answered question
Harish Rawal

Have you added ACTION_MAIN intent filter.

Sagar Poshiya

Try After Clean Project, Build > Clean Project

bsikriwal

huh? be explanatory pls.

Add a Comment

1 Answer

5

Maybe you forget to declare Your Activity in Manifest

   <activity android:name="your.package.YourDefaultActivity">
            <intent-filter>
                <action android:name="android.intent.action.MAIN"/>

                <category android:name="android.intent.category.LAUNCHER"/>
            </intent-filter>
        </activity>

Try to add this into your manifest,

posted this

Please login first before posting an answer.