T.N.V/응용1
안드 개발시 오류 1 : Manifest merger failed : Attribute application@icon value
해가꿈꾸는달
2018. 3. 23. 08:36
반응형
1. 기존 프로젝트에다 '한국투자신탁 api'를 모듈추가한후 발생.
해결 (Manifest 에서 추가한 부분)
1. xmlns:tools="http://schemas.android.com/tools"
<manifest
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="fragment.androidtown.org.myapplication"
>
2. tools:replace="android:icon"
<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/AppTheme"
tools:replace="android:icon">
!!
이후에 또 이런 문제가 발생하여서 error를 읽어보고 해결함.
error를 보면 제일 밑에 Suggestion: add'tools:replace="android:icon" 이 있음.
말그대로 Manifest 에다가 추가해 주라는 Error 대로
manifest -> application 에다가 'tools:replace="android:icon'를 추가해 주면 된다.
대신 tools 사용하기 위해서 manifest 에다가 tools를 사용한다고 얘기를 해줘야함.
참고 블로그
http://dd00oo.tistory.com/entry/%EC%95%88%EB%93%9C%EB%A1%9C%EC%9D%B4%EB%93%9C-manifest-%EB%84%A4%EC%9E%84%EC%8A%A4%ED%8E%98%EC%9D%B4%EC%8A%A4
반응형