Android Studio常见问题 -- uses-sdk:minSdkVersion 8 cannot be smaller than version 9 declared in library

* What went wrong:
Execution failed for task ':app:processDebugManifest'.
> Manifest merger failed : uses-sdk:minSdkVersion 15 cannot be smaller than version 16 declared in library D:\AndroidStudioProjects\StudioDemo\app\build\intermediates\exploded-aar\com.umeng\fb\5.1.0\AndroidManifest.xml

Suggestion: use tools:overrideLibrary="com.view.jameson.library" to force usage

解决方法
在app的AndroidManifest.xml中做如下修改:


复制代码

    xmlns:tools="http://schemas.android.com/tools"
    package="com.studio.demo">


            android:minSdkVersion="8"
        android:targetSdkVersion="22"
        tools:overrideLibrary="com.view.jameson.library" />


            android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/AppTheme"
        >
                    android:name=".MainActivity"
            android:label="@string/app_name" >
           
               


               
           

       
   





注意两个地方:

1. 在manifest节点加上:xmlns:tools="http://schemas.android.com/tools"

2. 在uses-sdk节点加上:tools:overrideLibrary="com.view.jameson.library"


你可能感兴趣的:(工具类)