-
카테고리
-
세부 분야
모바일 앱 개발
-
해결 여부
미해결
Splash 액티비티 질문이예요.
22.08.12 21:43 작성 조회수 163
0
다시 글 남겨요ㅜ
섹션 2. 트와이스 앱만들기
트와이스 앱 만들기 소개-강의소개 및 스플래시(Splash 화면) 4:35초에서 막혔습니다.
<?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.twice" >
<application
android:allowBackup="true"
android:dataExtractionRules="@xml/data_extraction_rules"
android:fullBackupContent="@xml/backup_rules"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/Theme.Twice"
tools:targetApi="31" >
<activity
android:name=".SplashActivity2"
android:exported="false" >
</activity>
//여기서 부터
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
//여기까지 어떠한 내용으로 고쳐야 하나요?
<activity
android:name=".MainActivity"
android:exported="true" >
</activity>
</application>
</manifest>
가상 핸드폰으로 볼려고 하니 안나오고
밑에 처럼 빨간색으로 에러 나오거든요. ㅠ 알려주세요.
Android resource linking failed C:\Users\joshu\AndroidStudioProjects\Twice2\app\build\intermediates\packaged_manifests\debug\AndroidManifest.xml:28: error: unexpected element <intent-filter> found in <manifest><application>.
답변을 작성해보세요.
1
0
0
개복치개발자
지식공유자2022.08.12
intent filter 부분을 splash 안으로 넣어보시겠어요? 아래와 같이 하시면 됩니다.
<?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.twice" >
<application
android:allowBackup="true"
android:dataExtractionRules="@xml/data_extraction_rules"
android:fullBackupContent="@xml/backup_rules"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/Theme.Twice"
tools:targetApi="31" >
<activity
android:name=".SplashActivity2"
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>
답변 3