Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a way to change the version of Gradle Plugin? #650

Closed
nrikiji opened this issue Feb 5, 2019 · 2 comments
Closed

Is there a way to change the version of Gradle Plugin? #650

nrikiji opened this issue Feb 5, 2019 · 2 comments

Comments

@nrikiji
Copy link

nrikiji commented Feb 5, 2019

Would you please tell me if there is a way to change without fiddling the code directly...

buildscript {

    ・・・

    dependencies {
        // I want to rewrite this value
        classpath 'com.android.tools.build:gradle:3.2.0'
    }
}

https://github.com/apache/cordova-android/blob/master/framework/build.gradle#L34

@nrikiji nrikiji closed this as completed Feb 5, 2019
@nrikiji nrikiji reopened this Feb 5, 2019
@breautek
Copy link
Contributor

You can extend the gradle config (see the docs) but I don't think you can override/rewrite defined dependencies in gradle.

Also changing the gradle plugin version is not recommended. More often than not, the gradle plugin updates includes breaking changes.

@TiBz0u
Copy link

TiBz0u commented Feb 7, 2022

Hi @nrikiji, I encounter the same problem recently. I need to use <queries> element in the AndroidManifest.xml.
However, it's only compatible since some patch of Android Gradle Plugin.
2 possibilities:

  • Upgrade to last version of Cordova Android (10.x)
  • Cordova Android 8 (v3.3.0) / 9 (v4.0.0) : Use a hook that modify the version. I haven't tested but this hook seems to make the job.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants