Manifest merger failed : uses-sdk:minSdkVersion 9 cannot be smaller than version 10 declared in library

Error:Execution failed for task ':app:processDebugManifest'.
> Manifest merger failed : uses-sdk:minSdkVersion 9 cannot be smaller than version 10 declared in library [org.piwik.sdk:piwik-sdk:0.0.3] /Users/weichunsheng/Documents/android_app/app/build/intermediates/exploded-aar/org.piwik.sdk/piwik-sdk/0.0.3/AndroidManifest.xml
Suggestion: use tools:overrideLibrary="org.piwik.sdk" to force usage

  

错误如上:

解决方案如下:

第一:修改自己兼容的最低版本minSdkVersion为10即可解决

第二:使用官方给出的解决方案,其实报错提示已经给出了答案。

Manifest merger failed : uses-sdk:minSdkVersion 9 cannot be smaller than version 10 declared in library

在清单文件配置一下即可。

Manifest merger failed : uses-sdk:minSdkVersion 9 cannot be smaller than version 10 declared in library

好的,完美结局。

from:http://tools.android.com/tech-docs/new-build-system/user-guide/manifest-merger?utm_campaign=adp_series_sdkversion_010616&utm_source=medium&utm_medium=blog#TOC-tools:overrideLibrary-marker

上一篇:T-SQL运算符


下一篇:xml格式化