Comments (7)
I've just published [email protected]
and [email protected]
which should resolve this issue.
Using the example outlined in the original feature request above, you can now do this:
cordova plugin add cordova-android-play-services-gradle-release\
--variable play-services-auth=16.0.1\
--variable play-services-base=16.1.0\
--variable play-services-identity=16.0.0\
--variable play-services-analytics=16.0.8
cordova plugin add cordova-android-firebase-gradle-release\
--variable firebase-analytics=16.5.0\
--variable firebase-crash=16.5.0
from cordova-android-play-services-gradle-release.
Currently this plugin (and it's sister plugins) only enables you to specify a library-wide version number (i.e. across all Play Services components) so it's not possible to specify different versions for different Play Services components.
However I think it should be possible to support this by enabling each component version to be specified via a plugin variable and providing defaults for those not specified.
This would take a major rework of the plugin and require a new major version, but since Google is continuing to move away from atomic library versioning to component-specific versions, I think it would be worth doing.
When I get some time over the next few days, I'll have a go at implementing a solution.
from cordova-android-play-services-gradle-release.
I also think that it is an excellent idea, and I also join the congratulations and thanks to @dpa99c for taking the time to create this incredible plugin. In fact, my friend, if you give me some lines of development or some way to follow, I offer to help you with the improvements to this plugin.
from cordova-android-play-services-gradle-release.
thanks, I have a similar issue, and I'm unable to find the correct play-services versions
from cordova-android-play-services-gradle-release.
Wow boy, you are very big, congratulations for this excellent work, you deserve a beer because of our admiration you already have it.
from cordova-android-play-services-gradle-release.
No worries, I will close this now as I believe this issue is now resolved 😁
from cordova-android-play-services-gradle-release.
cordova plugin add cordova-android-firebase-gradle-release
--variable firebase-analytics=16.5.0
--variable firebase-crash=16.5.0
Hello @dpa99c when I run those commands to fix the mentioned bug where some libraries require a version but it resolves to another... I get this when trying to build my app:
/platforms/android/app/src/main/java/com/adobe/phonegap/push/PushInstanceIDListenerService.java:18: error: method does not override or implement a method from a supertype
@Override
How can it fix this? My original error was:
The library com.google.android.gms:play-services-measurement-base is being requested by various other libraries at [[15.0.2,15.0.2]], but resolves to 15.0.4. Disable the plugin and check your dependencies tree using ./gradlew :app:dependencies.
from cordova-android-play-services-gradle-release.
Related Issues (16)
- variable PLAY_SERVICES_VERSION not honored HOT 1
- please apply google-services plugin at the bottom of the build file. HOT 6
- Installing android version 6 but runs script for android 7 HOT 2
- build failed with cordova-plugin-firebase HOT 3
- Cannot add the plugin again after removing it HOT 3
- variable PLAY_SERVICES_VERSION not honored with cordova 8.1.2 and cordova android 6.4 HOT 4
- Use a plugin variable to set the required library version HOT 18
- Add cordova@9 support
- How does this plugin work?
- May your plugin help me ? HOT 2
- build failed if no plugin is injected via config.xml HOT 2
- After PLAY_SERVICES_VERSION = "11.+" Build Failed HOT 1
- Failed to install 'cordova-android-play-services-gradle-release' HOT 2
- com.google.android.gms:play-services-location:11.6.0, but version 11.6.2 HOT 10
- Unexpected token ( on build.gradle file HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cordova-android-play-services-gradle-release.