在用AndroidStudio构建项目的时候报了一堆错
Error:Execution failed for task ':app:processDebugManifest'.
> Manifest merger failed : uses-sdk:minSdkVersion 8 cannot be smaller than version 9 declared in library [RollTv:MyLib:unspecified] H:\rollTv\RollTv\app\build\intermediates\exploded-aar\RollTv\MyLib\unspecified\AndroidManifest.xmlSuggestion: use tools:overrideLibrary="com.myworkframe.activity" to force usage
是因为引入第三方包缘故,只需要在本项目的app中的AndroidManifest.xm的标签的上方添加代码
<uses-sdk android:minSdkVersion="8"android:targetSdkVersion="23"tools:overrideLibrary="com.myworkframe.activity,com,com.google.android.gms,com.google.android.gms"/>
但是随之而来报了一堆错:
Error:Execution failed for task ':app:processDebugManifest'.
> Manifest merger failed : uses-sdk:minSdkVersion 8 cannot be smaller than version 9 declared in library [com.google.android.gms:play-services-appindexing:8.1.0] H:\rollTv\RollTv\app\build\intermediates\exploded-aar\com.google.android.gms\play-services-appindexing\8.1.0\AndroidManifest.xmlSuggestion: use tools:overrideLibrary="<pre class="html" name="code"><uses-sdk android:minSdkVersion="8" android:targetSdkVersion="23" tools:overrideLibrary="com.myworkframe.activity,com,com.google.android.gms,com.google.android.gms" />
.gms" to force usageError:Execution failed for task ':app:processDebugManifest'.> Manifest merger failed : uses-sdk:minSdkVersion 8 cannot be smaller than version 9 declared in library [com.google.android.gms:play-services-basement:8.1.0] H:\rollTv\RollTv\app\build\intermediates\exploded-aar\com.google.android.gms\play-services-basement\8.1.0\AndroidManifest.xmlSuggestion: use tools:overrideLibrary="com.google.android.gms" to force usage
其实仔细一看这对错误,还是和上方的错误一样,只需要在刚才添加的代码在添加一句代码
<uses-sdk android:minSdkVersion="8" android:targetSdkVersion="23" tools:overrideLibrary="com.myworkframe.activity,com.google.android.gms,com.google.android.gms" />
??