Hello, I'm getting a build error `uses-sdk:minSdkV...
# kodein
t
Hello, I'm getting a build error
uses-sdk:minSdkVersion 16 cannot be smaller than version 21 declared in library [org.kodein.di:kodein-di-framework-android-x:7.4.0]
when I'm using version 7.3.0 and up Does kodein require minSdk 21 from that version? I can't find any documentation about it.
the
AndroidManifest.xml
in the aar in mavenCentral contains different content from the one on Github. mavenCentral
Copy code
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="<http://schemas.android.com/apk/res/android>"
    package="org.kodein.di.android.x" >

    <uses-sdk android:minSdkVersion="21" />

</manifest>
Github
Copy code
<?xml version="1.0" encoding="UTF-8"?>

<manifest package="org.kodein.di.android.x" />
Library built locally has the same problem
commit `3d66201` on `kodein-internal-gradle-plugin` repo changed minSdk to 21, so I guess it's an intended behavior?
r
Hi, yes it is intended as some libraries where impacted by issues with older versions of Android SDK, and we felt that supporting Android 5 or higher was good enough as it already is 6/7 years old
t
sounds reasonable. But please put it somewhere in a documentation 😢
r
t
@romainbsl It's actually from version 7.3
r
Oh! Sorry, will fix this asap.
s
@tom5079 Note that only the
kodein-di-framework-android-*
(which add Android specific utilities) are affected by this minimum versioning. "Regular"
kodein-di
works on all versions of Android. @romainbsl Maybe you could update the doc to reflect that?
r
Will do 😉