How do I resolve Activity Not Found Exception : <p>In my android app, I've added an activity <em>MainActivity</em> in the manifest file, on navigating to that activity using an inten I get <code>activity not found error</code> asking if I've added it to manifest</p>

<p>here is my manifest activity</p>

<pre><code>        &lt;activity
            android:name=".MainActivity"
            android:clearTaskOnLaunch="true"
            android:configChanges="orientation|keyboardHidden|screenSize"
            android:icon="@mipmap/ic_launcher"
            android:rotationAnimation="seamless"
            android:screenOrientation="portrait"
            android:theme="@style/Theme.AppCompat"
            tools:targetApi="O"&gt;

             &lt;intent-filter&gt;
             &lt;action android:name="android.intent.action.MAIN" /&gt;


             &lt;category android:name="android.intent.category.OPENABLEk" /&gt;
             &lt;/intent-filter&gt;

&lt;!--            Register as a system camera app--&gt;
            &lt;intent-filter&gt;
                &lt;action android:name="android.media.action.IMAGE_CAPTURE" /&gt;
                &lt;action android:name="android.media.action.STILL_IMAGE_CAMERA" /&gt;
                &lt;action android:name="android.media.action.VIDEO_CAMERA" /&gt;

                &lt;category android:name="android.intent.category.DEFAULT" /&gt;
            &lt;/intent-filter&gt;

            &lt;!-- App links for http/s --&gt;
            &lt;intent-filter android:autoVerify="true"&gt;
                &lt;action android:name="android.intent.action.VIEW" /&gt;

                &lt;category android:name="android.intent.category.DEFAULT" /&gt;
                &lt;category android:name="android.intent.category.BROWSABLE" /&gt;

                &lt;data android:scheme="http" /&gt;
                &lt;data android:scheme="https" /&gt;
                &lt;data android:host="example.android.com" /&gt;
                &lt;data android:pathPattern="/camerax" /&gt;
            &lt;/intent-filter&gt;

            &lt;!-- Declare notch support --&gt;
            &lt;meta-data
                android:name="android.notch_support"
                android:value="true" /&gt;
        &lt;/activity&gt;
</code></pre>

<p>here is the log</p>

<pre><code>E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.virtusync.scanningtool, PID: 28538
    android.content.ActivityNotFoundException: Unable to find explicit activity class {com.virtusync.scanningtool/com.android.example.cameraxbasic.MainActivityKt}; have you declared this activity in your AndroidManifest.xml?
        at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:2005)
        at android.app.Instrumentation.execStartActivity(Instrumentation.java:1673)
        at android.app.Activity.startActivityForResult(Activity.java:4586)
        at androidx.fragment.app.FragmentActivity.startActivityForResult(FragmentActivity.java:675)
        at android.app.Activity.startActivityForResult(Activity.java:4544)
        at androidx.fragment.app.FragmentActivity.startActivityForResult(FragmentActivity.java:662)
        at android.app.Activity.startActivity(Activity.java:4905)
        at android.app.Activity.startActivity(Activity.java:4873)
        at com.android.example.cameraxbasic.SelectOperation$1.onClick(SelectOperation.java:36)
        at android.view.View.performClick(View.java:7044)
        at android.view.View.performClickInternal(View.java:7017)
        at android.view.View.access$3200(View.java:784)
        at android.view.View$PerformClick.run(View.java:26596)
        at android.os.Handler.handleCallback(Handler.java:873)
        at android.os.Handler.dispatchMessage(Handler.java:99)
        at android.os.Looper.loop(Looper.java:193)
        at android.app.ActivityThread.main(ActivityThread.java:6819)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:497)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:912)

</code></pre>

<p>I've done this 
<a href="https://stackoverflow.com/questions/54634397/how-to-fix-android-content-activitynotfoundexception-android-studio-2-3-3">How to fix &quot;android.content.ActivityNotFoundException&quot; android-studio 2.3.3</a>
no solution yet</p>
