+ Reply Thread
#1
I have the latest android studio at this point. So I created a new project and selected the minimal API level - 9 (android 2.3).
Now imagine my surprise when I saw an error (on a blank project)


Error:Execution failed for task ':app:processDebugManifest'.
> Manifest merger failed : uses-sdk:minSdkVersion 9 cannot be smaller than version 14 declared in library [com.android.support:appcompat-v7:26.0.0-alpha1] /Users/tony/.android/build-cache/6e7445cf6e4bf9964145ddcfeaf2e255f1b7f49a/output/AndroidManifest.xml
Suggestion: use tools:overrideLibrary="android.support.v7.appcompat" to force usage

Interpretation:
com.android.support:appcompat-v7:26.+ does not support 9.
#2
Ah well, I have to downgrade the app slightly to meet up.

This does not mean that you cannot target the latest android os and still do minimum support of 9 because I did that in my last app. This is just a demo.

I am posting the new gradle here in case this helps someone.
Code:
apply plugin: 'com.android.application' android { compileSdkVersion 25 buildToolsVersion "25.0.3" defaultConfig { applicationId "com.be1" minSdkVersion 10 targetSdkVersion 25 versionCode 1 versionName "1.0" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } } repositories { flatDir { dirs 'libs' } } dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) compile 'com.android.support:appcompat-v7:25.3.1' compile 'ch.acra:acra:4.8.5' compile 'com.android.support:design:25.3.1' compile 'com.google.code.gson:gson:2.7' compile 'com.loopj.android:android-async-http:1.4.9' } fileTree(dir: 'libs', include: '**/*.aar') .each { File file -> dependencies.add("compile", [ name: file.name.lastIndexOf('.').with { it != -1 ? file.name[0..<it] : file.name }, ext: 'aar' ]) }
Back to top