작성
·
473
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.
답변 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
https://carpet-part1.tistory.com/502
이거 보고 해결했습니다!!