我進口我的項目從Eclipse
到to Android Studio
錯誤。當我建的項目,我採取如下錯誤信息:Eclipse項目移至Android Studio。有一個在minsdk版本
Error:Execution failed for task ':app:processDebugManifest'.
> Manifest merger failed : uses-sdk:minSdkVersion 10 cannot be smaller than version 14 declared in library [com.google.android.gms:play-services:11.0.0] C:\Users\Ahmet\Documents\edx\Android\WonderkidandTransfersforFM17\app\build\intermediates\exploded-aar\com.google.android.gms\play-services\11.0.0\AndroidManifest.xml
Suggestion: use tools:overrideLibrary="com.google.android.gms.play_services" to force usage
我試圖改變minsdk版本,我試過在清單中添加tools:overrideLibrary="com.google.android.gms.play_services"
。我無法解決這個問題。
Manifest.xml
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.ahmety.wonderkidandtransfersforfm17"
android:versionCode="24"
android:versionName="1.3" >
<uses-sdk
android:minSdkVersion="10"
android:targetSdkVersion="17" />
build.gradle
apply plugin: 'com.android.application'
android {
compileSdkVersion 22
buildToolsVersion "25.0.2"
defaultConfig {
applicationId "com.ahmety.wonderkidandtransfersforfm17"
minSdkVersion 10
targetSdkVersion 17
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
productFlavors {
}
}
dependencies {
compile 'com.android.support:support-v4:22.2.1'
compile 'com.google.android.gms:play-services:+'
compile files('libs/OneSignalSDK.jar')
}
可以請你分享gradle這個和明顯 –
播放服務10.0.1是最後的版本,支持的API 9/10。降級播放服務依賴於該版本或更改minSDK至14 – BladeCoder
我只是說gradle這個和明顯... –