Code Monkey home page Code Monkey logo

Please add a guide option to be able to set each item of play-services-X to the version that is required to avoid the typical play-services-X is being requested by several other libraries at [[15.x1,15.x2] ], but resolves to 15.x3. about cordova-android-play-services-gradle-release HOT 7 CLOSED

dpa99c avatar dpa99c commented on August 11, 2024 4
Please add a guide option to be able to set each item of play-services-X to the version that is required to avoid the typical play-services-X is being requested by several other libraries at [[15.x1,15.x2] ], but resolves to 15.x3.

from cordova-android-play-services-gradle-release.

Comments (7)

dpa99c avatar dpa99c commented on August 11, 2024 3

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.

dpa99c avatar dpa99c commented on August 11, 2024 2

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.

IngAjVillalon avatar IngAjVillalon commented on August 11, 2024 1

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.

fdambrosio avatar fdambrosio commented on August 11, 2024

thanks, I have a similar issue, and I'm unable to find the correct play-services versions

from cordova-android-play-services-gradle-release.

IngAjVillalon avatar IngAjVillalon commented on August 11, 2024

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.

dpa99c avatar dpa99c commented on August 11, 2024

No worries, I will close this now as I believe this issue is now resolved 😁

from cordova-android-play-services-gradle-release.

UlisesCeca avatar UlisesCeca commented on August 11, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.