Giter Site home page Giter Site logo

Comments (11)

iwan-uschka avatar iwan-uschka commented on August 21, 2024 4

I finally got this working by installing and configuring the plugin within the config.xml like this:

<plugin name="cordova-android-support-gradle-release" spec="cordova_plugins/cordova-android-support-gradle-release" version-comment-only="1.0.0">
  <variable name="ANDROID_SUPPORT_VERSION" value="25.+"/>
</plugin>

Thanks for that hint and thank you in general for your work on these great plugins.

In this case you could tell me that "25.+" is the version to define here. What about other plugins. Is there a way to automatically find the correct version of all plugins? Should it be the smallest?

Is it a good idea to install cordova-android-support-gradle-release and cordova-android-play-services-gradle-release anyway to be prepared for version clashes?

from cordova-android-support-gradle-release.

dpa99c avatar dpa99c commented on August 21, 2024

The latest release version of the support library is v26, so [email protected] has been bumped to point at this by default, whereas [email protected] is set to v25.

However, v1.0.0 also adds the ability to specify a version using a plugin variable, so in your case you probably want:

cordova plugin add cordova-android-support-gradle-release --variable ANDROID_SUPPORT_VERSION=25.+

from cordova-android-support-gradle-release.

dpa99c avatar dpa99c commented on August 21, 2024

Is it a good idea to install cordova-android-support-gradle-release and cordova-android-play-services-gradle-release anyway to be prepared for version clashes?

This is up to you, but I would only install them if they are necessary to fix a version clash - no point in installing plugins you don't need.

from cordova-android-support-gradle-release.

iwan-uschka avatar iwan-uschka commented on August 21, 2024

Good point :)

from cordova-android-support-gradle-release.

danielehrhardt avatar danielehrhardt commented on August 21, 2024

Thank You!!

from cordova-android-support-gradle-release.

ck88ger avatar ck88ger commented on August 21, 2024

ok so whats the final solution here? what can i use..
i have the problem that i got the same build error before i installed this plugin. i have the diagnostic plugin too. should i use a custom version or the default version to fix my problem

from cordova-android-support-gradle-release.

dpa99c avatar dpa99c commented on August 21, 2024

@cagdas88 did you install this plugin with ANDROID_SUPPORT_VERSION=25.+?

Also, depends which other plugins you have installed in the project: if you have others which use Gradle classes (rather than strings) such as cordova-plugin-fcm or phonegap-plugin-push then this plugin is unable to override those versions and won't be of help (see here)

from cordova-android-support-gradle-release.

mwoeber avatar mwoeber commented on August 21, 2024

@iwan-uschka

You, sir, are the man, I have been trying to figure out my issue for a few weeks now!

from cordova-android-support-gradle-release.

canado avatar canado commented on August 21, 2024

I have diagnostic and firebase
what should I do ?

I have this android:keyboardNavigationCluster error as well when including
<plugin name="cordova.plugins.diagnostic" spec="~3.7.1" source="npm" />

when I add

 <plugin name="cordova-android-support-gradle-release" spec="cordova_plugins/cordova-android-support-gradle-release" version-comment-only="1.0.0">
          <variable name="ANDROID_SUPPORT_VERSION" value="25.+"/>
    </plugin>

I have this error
Failed to fetch plugin https://github.com/cordova_plugins/cordova-android-support-gradle-release via git.
Either there is a connection problems, or plugin spec is incorrect:
Error: git: Command failed with exit code 128 Error output:
Cloning into '/tmp/git/1512072171842'...

from cordova-android-support-gradle-release.

canado avatar canado commented on August 21, 2024

Same problem with

<plugin name="cordova.plugins.diagnostic" spec="~3.6.8" source="npm" />

Fetching plugin "cordova.plugins.diagnostic@~3.6.8" via npm
Installing "cordova.plugins.diagnostic" at "3.6.8" for android
Subproject Path: CordovaLib
"plugman install --platform android --project /project --plugin https://github.com/cordova_plugins/cordova-android-support-gradle-release --nohooks=.": Fetching plugin "https://github.com/cordova_plugins/cordova-android-support-gradle-release" via git clone
Cloning full repository
Failed to fetch plugin https://github.com/cordova_plugins/cordova-android-support-gradle-release via git.
Either there is a connection problems, or plugin spec is incorrect:
Error: git: Command failed with exit code 128 Error output:
Cloning into '/tmp/git/1512075277759'...
fatal: could not read Username for 'https://github.com': No such device or address

from cordova-android-support-gradle-release.

vipulism avatar vipulism commented on August 21, 2024

I was getting this error

/platforms/android/build/intermediates/res/merged/debug/values-v26/values-v26.xml:15: error: Error: No resource found that matches the given name: attr 'android:keyboardNavigationCluster'.

I just downgrade these two plugins to resolve build fail issue

cordova.plugins.diagnostic from @4.x to @3.6.7
cordova-android-support-gradle-release from @1.4.x to @1.0.0
with ANDROID_SUPPORT_VERSION=v25.+

from cordova-android-support-gradle-release.

Related Issues (20)

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.