Reputation: 3746
My android studio seems to be not detecting AndroidManifest.xml file. When I try to run the app, configuration says that Default Activity not found
, but in my manifest there is activity
tag with necessary intent-filter
:
<activity
android:name=".ui.MainActivity">
<intent-filter>
<action android:name="ANDROID.INTENT.ACTION.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
AndroidManifest.xml is located at app/src/main
where it was initially created. Cleaning build, rebuilding, invalidating caches / restart does not help.
Upvotes: 0
Views: 153
Reputation: 44158
Names are case sensitive. Use:
<action android:name="android.intent.action.MAIN" />
If that still doesn't work try to provide the full path to your activity e.g.:
<activity
android:name="com.example.package.ui.MainActivity">
Upvotes: 2