Manifest. Android Studio. Проблема в манифесте

Знаю, что проблема с кодом в манифесте. Я новичок, поправьте меня пожалуйста.Буду особо признателен, если объясните в чем ошибка. Приложение вылетает при запуске

Класс MainActivity

public class MainActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }

    public void onClick(View view) {
        Intent intent = new Intent(this, MapsActivity.class);
        startActivity(intent);
    }
}

Логивведите сюда описание изображения

<?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.kldgid">

    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />

    <application
        android:allowBackup="true"
        android:icon="@drawable/logo"
        android:label="@string/app_name"
        android:roundIcon="@drawable/logo"
        android:supportsRtl="true"
        android:theme="@style/AppTheme"
        tools:ignore="GoogleAppIndexingWarning">

        <meta-data
            android:name="com.google.android.geo.API_KEY"
            android:value="@string/google_maps_key" />

        <activity
            android:name=".SplashScreenActivity"
            android:theme="@style/SplashScreen">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

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

        <activity
            android:name=".MainActivity"
            android:theme="@style/AppTheme">
        </activity>
    </application>

</manifest>


Ответы (1 шт):

Автор решения: Alex_Skvortsov

Проблема связана с отсутствием в манифесте MapsActivity

public void onClick(View view) {
    Intent intent = new Intent(this, MapsActivity.class);
    startActivity(intent);
}

Данный код приводит к ошибке Unable to found explicit activity class.

→ Ссылка