What do i have to put in my Manifest?

Hello, i made a button that switches the activity. But everytime i press this button the app crashes. Android studio sys its because i didn’t declared smth in my manifest but idk what. Here is the error and the manifest. Would be great if someone could help me there.

    <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/Theme.MyApplication"
        android:usesCleartextTraffic="true">
        <activity
            android:name=".MainActivity"
            android:exported="true"
            android:label="@string/app_name" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity
            android:name=".MainActivity2"
            android:exported="true"
            android:label="@string/app_name" >

        </activity>
    </application>

</manifest>
![Screenshot 2022-10-22 175216|690x229](upload://qNW4wf7dSsF6ndmBJWhxv410TeJ.png)

Hey, unfortunately I don’t have an answer myself but hopefully someone else does.

I just wanted to recommend posting your questions to an Android forum to get a faster response.
This forum is for Kotlin, which does include a lot of Android related stuff (that relates to Kotlin in some way).

Since your question doesn’t have anything related to Kotlin, there’s a good chance you’ll find faster support with android communities.

1 Like

I have the same problem , did you manage to fix it?