0

I try to run the app in Android Studio but I get an Error: Default Activity not Found, I have come through all the solutions proposed in this question and none of them worked for me so I Set the launch configuration to a Specified Activity as in the picture: enter image description here

But when I hit Run I get the error Activity not Found in the manifest file : enter image description here

here is my full Manifest Declaration:

enter image description here

RABI Hamza
  • 106
  • 8

4 Answers4

0

You only need the Activity name inside package

<activity android:name=".MainActivity >
       <intent-filter>
          <action android:name="android.intent.action.MAIN" />
          <category android:name="android.intent.category.DEFAULT"/>
          <category android:name="android.intent.category.LAUNCHER" />
       </intent-filter>
</activity>
Jordy Mendoza
  • 432
  • 4
  • 16
0

Try create another activity by android studio and check in the lancher home delete in your manifest this intent filter. Maybe this activity has some corrupted and Android studio dont recognize that

Daniel Carreto
  • 211
  • 1
  • 9
0

Please remove this line

<category android:name="android.intent.category.DEFAULT"/>
Ravi
  • 912
  • 1
  • 12
  • 17
0

Check if your MainActvity extends AppCompactActivity

Or

May be you are using a wrong package name to register activity. Check both.

user3832506
  • 93
  • 2
  • 4