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 adt-dev+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
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
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 adt-dev+u...@googlegroups.com.
According to the error, yes, and I think these are not conditions to fail the build.
The other way around would be.
Sent from my Nexus 4
Yay, thanks :)
Sent from my Nexus 4
I thought so, but even a mini tiny release with only that fix would be good, and affordable in the IO race ;)
Sent from my Nexus 4
If the fix lands in AOSP then building your own Android Studio is easy. Clone the project using repo, cd tools/idea, ant.
It's just the gradle plugin, in particular the manifest merger.
I could turn it off and use the old one, but then all the package name replacement would fail.
I could try to prepare a Linux system to build the tools, but I'll wait until Monday when I'm back in the office, maybe something will happen in the meanwhile :D
Sent from my Nexus 4
To unsubscribe from this group and stop receiving emails from it, send an email to adt-dev+unsubscribe@googlegroups.com.
--
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 adt-dev+unsubscribe@googlegroups.com.
--
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 adt-dev+unsubscribe@googlegroups.com.
--
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 adt-dev+unsubscribe@googlegroups.com.
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 adt-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
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 adt-dev+unsubscribe@googlegroups.com.