Fixed
Status Update
Comments
tn...@google.com <tn...@google.com>
je...@google.com <je...@google.com>
je...@google.com <je...@google.com>
is...@google.com <is...@google.com>
hu...@google.com <hu...@google.com>
je...@google.com <je...@google.com>
hm...@google.com <hm...@google.com>
hm...@google.com <hm...@google.com> #2
Thanks for the feature request. We have implemented a wildcard support for the tools:overrideLibrary selector and it will be available to try out in AGP 8.4.0-alpha01 once it's out.
an...@google.com <an...@google.com> #3
Thank you for your patience while our engineering team worked to resolve this issue. A fix for this issue is now available in:
- Android Studio Iguana | 2023.2.1 Canary 17
- Android Gradle Plugin 8.3.0-alpha17
We encourage you to try the latest update.
If you notice further issues or have questions, please file a new bug report.
Thank you for taking the time to submit feedback — we really appreciate it!
Description
supply all required information.
Build tools: 22.0.1
Gradle project has a marker named `tools:overrideLibrary`. This marker should support asterisk, for example:
tools:overrideLibrary="com.google.android.gms.*"
=== MY ISSUE ===
My app uses minimum SDK 7, and uses library Google Play Services, which requires API 9+:
compile 'com.google.android.gms:play-services:7.3.0'
For all components from the library Google Play Services, the app just wants to use AdMob only, and only if available (for API >= 9). If the user is running API < 9, the app simply doesn't show ads.
To do that, I have to use `tools:overrideLibrary` like this:
<uses-sdk tools:overrideLibrary="com.google.android.gms.all,com.google.android.gms.ads,com.google.android.gms,com.google.android.gms.analytics,com.google.android.gms.appindexing,com.google.android.gms.appinvite,com.google.android.gms.appstate,com.google.android.gms.cast,com.google.android.gms.drive,com.google.android.gms.fitness,com.google.android.gms.location,com.google.android.gms.maps,com.google.android.gms.games,com.google.android.gms.gcm,com.google.android.gms.identity,com.google.android.gms.nearby,com.google.android.gms.panorama,com.google.android.gms.plus,com.google.android.gms.safetynet,com.google.android.gms.wallet,com.google.android.gms.wearable" />
This is ridiculous.
Please add support for asterisk. So instead of above thing, it should be simpler like this:
tools:overrideLibrary="com.google.android.gms.*"
===
Another question: is it wrong that I have to include this library:
compile 'com.google.android.gms:play-services:7.3.0'
then I can't just use this?
tools:overrideLibrary="com.google.android.gms"
It doesn't work at this moment.
Thanks.