Android 清单合并失败:使用sdk:MinSDK版本9不能小于声明的版本20

Android 清单合并失败:使用sdk:MinSDK版本9不能小于声明的版本20,android,wear-os,Android,Wear Os,我得到以下错误: * What went wrong: Execution failed for task ':Application:processReleaseManifest'. > Manifest merger failed : uses-sdk:minSdkVersion 9 cannot be smaller than version 20 declared in library com.google.android.support:wearable:1.0.0 这是

我得到以下错误:

 * What went wrong:
 Execution failed for task ':Application:processReleaseManifest'.
 > Manifest merger failed : uses-sdk:minSdkVersion 9 cannot be smaller than version 20 declared in library com.google.android.support:wearable:1.0.0
这是我的Application Build.gradle文件:

apply plugin: 'com.android.application'

android {
compileSdkVersion 20
buildToolsVersion '20.0.0'

defaultConfig {
applicationId "com.ysk.notes"
minSdkVersion 9
targetSdkVersion 20
versionCode 3
versionName "1.02"
}
buildTypes {
release {
    runProguard true
    proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
  }
 }

dependencies
  {
         compile fileTree(include: ['*.jar'], dir: 'libs')
        compile project(':FacebookSDK')
        compile files('libs/activation.jar')
        compile files('libs/additionnal.jar')
        compile files('libs/mail.jar')
        compile 'com.android.support:support-v4:20.+'
        compile 'com.google.android.support:wearable:+'
        compile 'com.google.android.gms:play-services-wearable:+'
        wearApp project(':Wearable')

}

我不知道我哪里出错了?我遇到了一个类似的支持问题-v4:+我改为v4:20.+-现在该错误发生了,我得到了上面的错误。

您的磨损模块必须

minSdkVersion 20
它是磨损模块,而'com.google.android.support:wearable:1.0.0'需要minSdk=20 然后更改您构建的脚本

defaultConfig {
    applicationId "com.ysk.notes"
    minSdkVersion 20
    targetSdkVersion 20
    versionCode 3
    versionName "1.02"
}

移动模块不需要“com.google.android.support:wearable:1.0.0”依赖项。

关于support-v4:

compile 'com.android.support:support-v4:+'
compile 'com.android.support:support-v4:20.+'
他们是不同的

compile 'com.android.support:support-v4:+'  -> last version in your sdk, in this moment it can be 21.
compile 'com.android.support:support-v4:20.+' -> last version with maior release 20 (then 20.xx )

磨损模块有minsdk 20和targetsdk 20。我展示的脚本是针对手机的。手机模块不需要'com.google.android.support:wearable:1.0.0'依赖项。太好了。这起作用了。你能帮我解决这个奇怪的问题吗