λ³Έλ¬Έ λ°”λ‘œκ°€κΈ°
πŸ’š 개발/μ•ˆλ“œλ‘œμ΄λ“œ

[Android] INSTALL_PARSE_FAILED_MANIFEST_MALFORMED in Android12

by devshin.kr 2022. 2. 9.
728x90


κΈ°μ‘΄ μžˆλ˜ ν”„λ‘œμ νŠΈλ₯Ό Android12 (API Level 31) ν™˜κ²½μ—μ„œ ν…ŒμŠ€νŠΈλ₯Ό ν•˜λ €κ³  ν•˜λ‹ˆ μ•„λž˜μ™€ κ°™μ€ λ©”세지가 λ°œμƒν–ˆλ‹€.

 


[ Error Message ]

Installation did not succeed.
The application could not be installed: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED
Error: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED

 


Android12 λ₯Ό νƒ€κ²ŸνŒ…ν•˜μ—¬ ν…ŒμŠ€νŠΈ ν•  λ•Œ μ²΄ν¬ν•΄μ•Ό ν•˜λŠ” κ²ƒμ€ λ‘ κ°€μ§€κ°€ μžˆλŠ”데,
ν•˜λ‚˜λŠ” build.gradle (:app) ν™•μΈ
그리고 λ‹€λ₯Έ ν•˜λ‚˜λŠ” AndroidManifest.xml ν™•μΈμ΄λ‹€.

β‘  build.gradle (:app) μ—μ„œλŠ” compileSdkVersion κ³Ό, targetSdkVersion μ΄ 31 λ‘œ λ˜μ–΄ μžˆλŠ”κ°€λ₯Ό ν™•μΈν•œλ‹€.
β‘‘ AndroidManifest.xml μ—μ„œλŠ” <activity λ˜λŠ” <service λ˜λŠ” <receiver λ“±μ— android:exported="" κ°€ μžˆλŠ”지 ν™•μΈν•œλ‹€.
android:exported="true" λ˜λŠ” android:exported="false" λ‘œ μ˜΅μ…˜μ„ μ€„ μˆ˜ μžˆλŠ”데,


ν•΄λ‹Ή μ˜΅μ…˜μ€ μ•„λž˜ 곡식 λ¬Έμ„œλ₯Ό μ°Έκ³ ν•˜μ—¬ μ„€μ •ν•˜μž.



https://developer.android.com/guide/topics/manifest/activity-element#exported

 

<μ•‘ν‹°λΉ„ν‹°>  |  Android 개발자  |  Android Developers

Declares an activity (an Activity subclass) that implements part of the application's visual user interface. All activities must be represented by {@code } elements in the manifest file. Any that are not declared there will not be seen by the system…

developer.android.com

 

λŒ“κΈ€