Error:Execution failed for task ':app:processDebugManifest'.
Android Studioにて下記エラーが発生した祭の対応方法
Error:Execution failed for task ':app:processDebugManifest'.
Manifest merger failed with multiple errors, see logs
Android Studioのバージョンは現時点で最新の0.8.2
追加インストールしたAndroid SDKは
* Android SDK Tools
* Android SDK Platform-tools
* Android SDK Build-tools
* Android L
* Android 4.4W
* Android 4.4.2
* Android Support Repository
* Android Support Library
です。
それで上記のようなエラーが出るので、logを見てみると
uses-sdk:minSdkVersion 8 cannot be smaller than version L declared in library com.android.support:support-v4:21.0.0-rc1
というログが出ていました。 調べていると * uses-sdkを削除する * Manifest.xmlのmanifestタグに xmlns:tools="http://schemas.android.com/tools" を追記する
など幾つか出てきましたが、結局は
compile 'com.android.support:support-v4:+'
が悪さをしていました。
app/build.gradleのdependenciesセクションの記載を以下の追加or変更するか、
dependencies {
# ここに他にもcompile files記載があるかもしれません
compile 'com.android.support:support-v4:20.0.0'
}
あるいは、Android Studioのmenu->File->Project Structure->Dependenciesタブから
のcompile 'com.android.support:support-v4:+'を削除し、代わりに
compile 'com.android.support:support-v4:20.0.0'
を追加することで解決出来ました。