강의

멘토링

커뮤니티

Inflearn コミュニティ Q&A

joeune929849 のプロフィール画像
joeune929849

投稿した質問数

コトリン3強で終わるfeat。 Android開発

1編 基本文法

run 클릭 시 에러 발생

作成

·

609

0

5분 30초 정도에서 println 하는 부분에서

run을 누르니 에러가 떠서 수업을 진행하지 못하고 있습니다ㅠㅠ

 

구글링해봐도 정확한 해답을 못찾겠어서 질문 올립니다.

어떤 문제일까요??

 

> Task :app:processDebugAndroidTestManifest FAILED

C:\Users\user-pc\AndroidStudioProjects\practice\app\build\intermediates\tmp\manifest\androidTest\debug\tempFile1ProcessTestManifest12737616324960338379.xml Error:

android:exported needs to be explicitly specified for <activity>. 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.

C:\Users\user-pc\AndroidStudioProjects\practice\app\build\intermediates\tmp\manifest\androidTest\debug\tempFile1ProcessTestManifest12737616324960338379.xml Error:

android:exported needs to be explicitly specified for <activity>. 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.

C:\Users\user-pc\AndroidStudioProjects\practice\app\build\intermediates\tmp\manifest\androidTest\debug\tempFile1ProcessTestManifest12737616324960338379.xml Error:

android:exported needs to be explicitly specified for <activity>. 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.

 

See http://g.co/androidstudio/manifest-merger for more information about the manifest merger.

 

에러kotlin코틀린에러android코틀린실행에러

回答 2

1

저도 같은 오류 떴었는데 manifests 에서 activity 안에 android:exported="false" 추가해주니까 해결됐어요!

 

<activity
android:name=".MainActivity"
android:exported="false">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

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

0

저도 같은 문제인데 andriod:exported="false"를 하면 반드시 exported 되어야 한다고 오류가 뜨네요 ㅠㅠ 해결방법이 없을까요

joeune929849님의 프로필 이미지
joeune929849
質問者

https://carpet-part1.tistory.com/502

이거 보고 해결했습니다!!

joeune929849 のプロフィール画像
joeune929849

投稿した質問数

質問する