인프런 영문 브랜드 로고
인프런 영문 브랜드 로고

인프런 커뮤니티 질문&답변

tmdal0303님의 프로필 이미지
tmdal0303

작성한 질문수

[왕초보편] 앱 8개를 만들면서 배우는 안드로이드 코틀린(Android Kotlin)

호환성 문제

작성

·

149

0

Manifest merger failed : Apps targeting Android 12 and higher are required to specify an explicit value for `android:exported` when the corresponding component has an intent filter defined. See https://developer.android.com/guide/topics/manifest/activity-element#exported for details.

안녕하세요. 강의 잘 듣고 있습니다. 저는 현재 트와이스 앱 만들기를 진행하고 있습니다. 하지만 앱을 실행시키면 계속 매니페스트 파일에서와 같은 오류가 발생합니다. 그래서 해당 안드로이드 개발자 페이지와 / Refactor > Migrate to AndroidX 를 해보았는데도 위와 같은 오류가 계속 발생합니다. Manifest 파일의 코드는 아래와 같습니다. 

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

<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.Ttwice">
<activity android:name=".imageInsideActivity"></activity>
<activity android:name=".splashActivity">
<service android:name="com.seungk.ttwice"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

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

</activity>

</application>

</manifest>

어떤 것이 문제일까요... ㅜㅜ 구글링해도 뾰족한 수가 없는 것 같아 질문 남깁니다. 

답변 1

0

개복치개발자님의 프로필 이미지
개복치개발자
지식공유자

제가 적어놓은 코드와 한번 비교해주세요~

저는

<service android:name=

이 부분이 없는데 새롭게 들어가있습니다

tmdal0303님의 프로필 이미지
tmdal0303

작성한 질문수

질문하기