Doesn't it make sense to check the most restrictive combination and apply that one? As I see it, the lib should have at least all compatibilities required by the app. The problem is when the lib would be more restrictive, then I should be warned (at least).
Sent from my Nexus 4 On Jun 11, 2014 2:50 AM, "Xavier Ducrohet" <[email protected]> wrote: > The problem is that your app is declaring minSdkVersion 8 but you're > depending on something that require 15+ > > Since it's for a test app, we can fix this by making your test app only > work on API 15, but then we need to handle different minSdkVersion for the > main app and the test app (and of course this will restrict where you can > test your app). > > > On Tue, Jun 10, 2014 at 3:26 AM, Diego Costantini < > [email protected]> wrote: > >> Opened a bug: https://code.google.com/p/android/issues/detail?id=71147 >> >> >> On Tuesday, June 10, 2014 10:25:08 AM UTC+2, Diego Costantini wrote: >>> >>> Same issue :( >>> >>> On Monday, June 9, 2014 6:24:22 PM UTC+2, Edward Dale wrote: >>>> >>>> I'm using Jake Wharton's double-espresso (https://github.com/ >>>> JakeWharton/double-espresso). I've just updated my app to version >>>> 0.11.1 of the gradle build tools and get the following error when building >>>> now: >>>> >>>> >>>> ... >>>> :app:processMyBadassAppDebugTestManifest >>>> /Users/scompt/MyBadassApp/android/build/intermediates/exploded-aar/com.jakewharton.espresso/espresso/1.1-r3/AndroidManifest.xml:0:0 >>>> Error: >>>> uses-sdk:minSdkVersion 8 cannot be smaller than version 15 declared in >>>> library test manifest >>>> :app:processMyBadassAppDebugTestManifest FAILED >>>> >>>> FAILURE: Build failed with an exception. >>>> >>>> * What went wrong: >>>> Execution failed for task ':app:processMyBadassAppDebugTestManifest'. >>>> > java.lang.RuntimeException: Manifest merger failed : >>>> > uses-sdk:minSdkVersion 8 cannot be smaller than version 15 declared in >>>> > library test manifest >>>> >>>> I can workaround the error by either using the old manifest merger: >>>> >>>> >>>> android { >>>> useOldManifestMerger true >>>> ... >>>> } >>>> >>>> or by setting the minSdkVersion of my app to 8, which obviously isn't a >>>> workable solution. >>>> >>> -- >> You received this message because you are subscribed to the Google Groups >> "adt-dev" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > Xavier Ducrohet > Android SDK Tech Lead > Google Inc. > http://developer.android.com | http://tools.android.com > > Please do not send me questions directly. Thanks! > > -- > You received this message because you are subscribed to a topic in the > Google Groups "adt-dev" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/adt-dev/-Km7VgExKf4/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "adt-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
