Got a little build issue.
Got a lib that requires minSDK:23 while I still want to support 21.
The solution of
<uses-sdk
android:minSdkVersion="21"
tools:overrideLibrary="a.rogue.library" />
Doesn't sync anymore and shows
The minSdk version should not be declared in the android manifest file. You can move the version from the manifest to the defaultConfig in the build.gradle file. Remove minSdkVersion and sync project Affected Modules: approot
Strange observation: Sync fails but Build succeeds. Moreover, sync after build succeeds, too.
It's an unhealthy situation, though:
- If I add the
overrideLibrary
line to the manifest - it won't sync. - If I remove the
overrideLibrary
line from the manifest - it won't build, of course, because there is a minSDK conflict.
Any way to settle this out? Can overrideLibrary reside somehow in the build.gradle
?
Thanks