I am using android studio 4.0.1 facing following issue
Tried File -> Invalidate caches / Restart this works once. Works for first run only on restart when I try to run it second time it again shows error default activity not found.
Also tried Edit Configurations... set Specified activity strange issue found it says activity not found in manifest
Here is code from manifest
<activity
android:name=".config.SplashActivity"
android:launchMode="singleTop"
android:screenOrientation="portrait"
android:theme="@style/Theme.AppCompat.Splash">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data
android:host="domain.com"
android:pathPrefix="/"
android:scheme="https" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<!-- Branch App Links (optional) -->
<intent-filter android:autoVerify="true">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data
android:host="domain.app.link"
android:scheme="https" />
<data
android:host="domain.app.link"
android:scheme="https" />
</intent-filter>
</activity>
Update: Also tried File -> Sync Project with Gradle files not working. It is working only once start or restart android studio for second run this issue occurs
from Android Studio 4.0.1 default activity not found
No comments:
Post a Comment