티스토리 뷰
Stack Overflow에 자주 검색, 등록되는 문제들과 제가 개발 중 찾아 본 문제들 중에서 나중에도 찾아 볼 것 같은 문제들을 정리하고 있습니다.
Stack Overflow에서 가장 먼저 확인하게 되는 가장 높은 점수를 받은 Solution과 현 시점에 도움이 될 수 있는 가장 최근에 업데이트(최소 점수 확보)된 Solution을 각각 정리하였습니다.
아래 word cloud를 통해 이번 포스팅의 주요 키워드를 미리 확인하세요.
Manifest Merger failed with multiple errors in Android Studio
Android Studio에서 Manifest Merger에 여러 오류가 발생했습니다.
문제 내용
So, I am a beginner into Android and Java. I just began learning. While I was experimenting with Intent today, I incurred an error.
그래서, 저는 안드로이드와 자바 초보자입니다. 막 공부하기 시작한 참입니다. 오늘 Intent를 실험하다가 오류를 만나게 되었습니다.
Error:Execution failed for task ':app:processDebugManifest'.
> Manifest merger failed with multiple errors, see logs
I found some solutions here and tried to implement them, but it did not work.
저는 이곳에서 몇 가지 해결책을 찾아보았고, 그것들을 구현해보려고 했지만 작동하지 않았습니다.
This is my build.gradle :
이것은 제 build.gradle 파일입니다.
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.0"
defaultConfig {
applicationId "com.example.rohan.petadoptionthing"
minSdkVersion 10
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:23.0.0'
}
This is my AndroidManifest :
이것은 내 AndroidManifest입니다.
<?xml version="1.0" encoding="utf-8"?>
package="com.example.rohan.petadoptionthing" >
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name=".MainActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".Second"
/>
<activity android:name=".third"/>
<activity android:name=".MainActivity"/>
</application>
This is my first week with coding, I am sorry if this is a really silly thing. I am really new to this and did not find any other place to ask. Sorry if I broke any rules
이것은 제 첫 코딩 주이며, 아직 매우 어린 단계입니다. 오늘 난감한 상황에 처해 질문을 올립니다. 새로운 것을 배우는 중이기 때문에 다른 곳에서 도움을 받을 만한 자리를 찾지 못했습니다. 규칙을 어길 경우 죄송합니다.
높은 점수를 받은 Solution
Open application manifest (AndroidManifest.xml
) and click on Merged Manifest
tab on bottom of your edit pane. Check the image below:
앱 매니페스트(AndroidManifest.xml)를 열고 편집 창 아래에 있는 병합된 매니페스트 탭을 클릭하세요. 아래 이미지를 확인하세요.
From image you can see Error in the right column, try to solve the error. It may help some one with the same problem. Read more here.
위의 이미지에서 오류(Error)를 확인할 수 있습니다. 오류를 해결해보세요. 같은 문제를 가진 사람들에게 도움이 될 수 있습니다. 더 자세한 정보는 여기에서 확인하세요.
Also, once you found the error and if you get that error from external library that you are using, You have to let compiler to ignore the attribute from the external library. //add this attribute in application tag in the manifest
또한, 오류를 찾았을 때 해당 오류가 사용 중인 외부 라이브러리에서 발생한 경우, 컴파일러가 해당 속성을 외부 라이브러리에서 무시하도록해야합니다. // 이 속성을 Manifest의 Application 태그에 추가하십시오
tools:replace="android:allowBackup"
//Add this in the manifest tag at the top
xmlns:tools="http://schemas.android.com/tools"
가장 최근 달린 Solution
solution for me was like this:
나에게 적합한 해결책은 다음과 같았습니다:
1- open manifest
1. 매니페스트 열기
2-On top right , check highlighted problems like below:
2- 화면 우측 상단에서 아래와 같이 강조된 문제를 확인하세요:
3-click on problems icon in red. this will open problems tab like below.
3- 오른쪽 상단에 빨간색으로 표시된 문제를 확인하세요. 이 아이콘을 클릭하면 아래와 같은 문제 탭이 열립니다.
4- solve them one by one
4- 하나씩 문제를 해결하세요.
출처 : https://stackoverflow.com/questions/35842955/manifest-merger-failed-with-multiple-errors-in-android-studio
'개발 > 안드로이드' 카테고리의 다른 글
웹뷰 링크를 클릭하여 기본 브라우저 열기 (0) | 2022.12.22 |
---|---|
웹뷰에 pdf 문서 불러오기 (0) | 2022.12.22 |
특정 앱의 '앱 권한' 화면 띄우기 (0) | 2022.12.21 |
AndroidViewModel과 ViewModel의 차이점 (0) | 2022.12.21 |
Android: 이전 액티비티로 돌아가기 (0) | 2022.12.21 |