所以我在Android Studio上創建了一個應用程序,我試圖將AdMob植入到我的應用程序中。完成之後,我收到錯誤Error-SDK V3不能小於庫中定義的SDKv4。 這裏是我的build.gradleError-SDK V3不能小於庫中定義的SDKv4
apply plugin: 'com.android.application'
android {
compileSdkVersion 21
buildToolsVersion "22.0.1"
defaultConfig {
applicationId "ru.o2genum.coregame"
minSdkVersion 3
targetSdkVersion 8
}
dependencies {
compile 'com.google.android.gms:play-services-ads:7.8.0'
compile 'com.android.support:support-v4:20.+'
compile 'com.google.android.gms:play-services:+'
//compile 'com.android.support:support-v4:20.0.0'
//compile 'com.google.android.gms:play-services:5.0.77'
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}
,這裏是錯誤Error:(24, 5) uses-sdk:minSdkVersion 3 cannot be smaller than version 9 declared in library C:\Users\Osama\StudioProjects\CoreGame-master\app\build\intermediates\exploded-aar\com.google.android.gms\play-services-ads\7.8.0\AndroidManifest.xml
當你開始創建minsdk時,你做了什麼? – Jorden
謝謝Jorden是的,我真的很困惑的錯誤,而不是檢查它。 –