I have a very big problem.
From time to time, Android Studio gives an error saying that it has not found the default activity. It does not follow a specific pattern, since sometimes it appears after a while of being using the program, others appear after executing the application on a mobile device ...
So far, I've tried the following:
- Invalidate caches and restart
- Delete the content of .gradle and re-sync
- Clean and recompile the project
However, this does not always work. Sometimes, just doing one of the steps is enough, sometimes it takes two, but the truth is that it does not follow a specific pattern. It makes me lose a lot of time, because they are actions that I have to repeat almost every time I want to run the application.
This is my AndroidManifest.xml:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.jmdesing.guiadigital">
<uses-permission android:name="android.permission.INTERNET"/>
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme.NoActionBar">
<!--Register your activities here-->
<activity android:name=".view.GeneralMainMenu"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.LAUNCHER" />
<category android:name="android.intent.category.DEFAULT"/>
</intent-filter>
</activity>
</application>
</manifest>
As you can see, in theory, it is correct. I tried to put the route of the complete activity, but the result is the same.