Monday, 17 December 2018

Error: Default activity not found, but she is declared

I have strange situation that has hapenned with me twice.

I have manifest inside mya main module - igs_main

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
          xmlns:tools="http://schemas.android.com/tools" package="com.example">

    <application
            android:name=".CommonApplication"
            android:allowBackup="false"
            android:label="@string/app_name"
            android:hardwareAccelerated="true"
            android:networkSecurityConfig="@xml/network_security_config"
            android:theme="@style/AppTheme"
            android:supportsRtl="false"
            tools:replace="android:supportsRtl,android:allowBackup"
            tools:ignore="GoogleAppIndexingWarning, UnusedAttribute, RtlSupport">

        <activity android:name=".auth.view.SplashScreen">
            <intent-filter>
                <action android:name="android.intent.action.MAIN"/>

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

</manifest>

When I'm trying to launch my app it looks like

enter image description here

And I getting an error :

enter image description here

I tried specify directly my default Activity, but AS said that this activity is not declared in Manifest.

enter image description here

Then I tried to Invalidate Caches and Restart AS and Rebuild the project, but it also didn't help me.

So, I waste all possible solutions. Who knows how it can be fixed?



from Error: Default activity not found, but she is declared

No comments:

Post a Comment