반응형

intent-filter를 SplashActivity 사이에 껴넣어준다

(여기서 activity 부분에 true 란에 공백이 있는지 한 번더 확인한다. 공백이 있으면 

the element type "application" must be terminated by the matching end-tag "</application>".

이 오류가 뜬다.)

 

<activity
            android:name=".SplashActivity"
            android:exported="true">
<activity
            android:name=".SplashActivity"
            android:exported="true"/ >

 


오류가 떴었는데, true 이 부분에 대해서 공백란이 있었어서 오류가 떴었다.

공백란을 해결해주니 오류가 해결되면서 말끔히 어플이 실행되는 모습이다.

 

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

    <application
        android:allowBackup="true"
        android:dataExtractionRules="@xml/data_extraction_rules"
        android:fullBackupContent="@xml/backup_rules"
        android:icon="@mipmap/ic_launcher"
        android:label="splash"
        android:roundIcon="@mipmap/ic_launcher_round"
        android:supportsRtl="true"
        android:theme="@style/Theme.Diet_memo"
        tools:targetApi="31">

        <activity
            android:name=".SplashActivity"
            android:exported="true">

        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

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

        </activity>

        <activity
            android:name=".MainActivity"
            android:exported="true">
        </activity>

    </application>

</manifest>
반응형