dpa99c/cordova-android-support-gradle-release

Installing problem with cordova v6.x

WuglyakBolgoink opened this issue · 0 comments

I'm submitting a ... (check one with "x"):

  • bug report
  • feature request
  • documentation issue

Bug report

Current behavior:
In docu wos written, that we should do so:

Therefore if you're installing with cordova@6, you'll need to explicitly specify the --fetch option:
$ cordova plugin add cordova-android-support-gradle-release --fetch 

But this is not correct, because on cordova v6.x I need explicit use --save parameter, to save VARIABLE into config.xml. Without this state, plugin can not use custom version, and replace on my system with v27.+

Expected behavior:

if plugin should be install via --fetch, then plugin should not use value from config.xml

Environment information

  • Cordova CLI version
    • cordova -v

6.5.0

  • Cordova platform version
    • cordova platform ls

Installed platforms:
android 6.3.0
ios 4.5.3

  • Plugins & versions installed in project (including this plugin)
    • cordova plugin ls

cordova-android-support-gradle-release 1.4.4 "cordova-android-support-gradle-release"
cordova-custom-config 5.0.2 "cordova-custom-config"
cordova-plugin-android-fingerprint-auth 1.4.4 "FingerprintAuth"
cordova-plugin-android-permissions 0.10.0 "Permissions"
cordova-plugin-compat 1.2.0 "Compat"
cordova-plugin-crosswalk-webview 2.4.0 "Crosswalk WebView Engine"
cordova-plugin-device 2.0.2 "Device"
cordova-plugin-ignore-lint-translation 0.0.1 "cordova-plugin-ignore-lint-translation"
cordova-plugin-inappbrowser 3.0.0 "InAppBrowser"
cordova-plugin-network-information 2.0.1 "Network Information"
cordova-plugin-safariviewcontroller 1.5.4 "SafariViewController"
cordova-plugin-splashscreen 5.0.2 "Splashscreen"

Android build issue:

  • Node JS version
    • node -v

v10.6.0

  • Gradle version
    • ls platforms/android/.gradle

4.4

  • Target Android SDK version
    • android:targetSdkVersion in AndroidManifest.xml

android:minSdkVersion="19" android:targetSdkVersion="26"

  • Android SDK details
    • sdkmanager --list | sed -e '/Available Packages/q'

Installed packages:
Path | Version | Description | Location
------- | ------- | ------- | -------
add-ons;addon-google_apis-google-19 | 20.0.0 | Google APIs, Android 19, rev 20 | add-ons/addon-google_apis-google-19/
add-ons;addon-google_apis-google-23 | 1.0.0 | Google APIs, Android 23 | add-ons/addon-google_apis-google-23/
add-ons;addon-google_apis-google-24 | 1.0.0 | Google APIs, Android 24 | add-ons/addon-google_apis-google-24/
build-tools;25.0.3 | 25.0.3 | Android SDK Build-Tools 25.0.3 | build-tools/25.0.3/
build-tools;26.0.2 | 26.0.2 | Android SDK Build-Tools 26.0.2 | build-tools/26.0.2/
build-tools;27.0.3 | 27.0.3 | Android SDK Build-Tools 27.0.3 | build-tools/27.0.3/
docs | 1 | Documentation for Android SDK | docs/
emulator | 27.2.9 | Android Emulator | emulator/
extras;android;gapid | 1.0.3 | GPU Debugging tools, rev 1.0.3 | extras/android/gapid/
extras;android;m2repository | 47.0.0 | Android Support Repository, rev 47 | extras/android/m2repository/
extras;android;support | 23.2.1 | Android Support Library, rev 23.2.1 | extras/android/support/
extras;google;google_play_services | 49.0.0 | Google Play services, rev 49 | extras/google/google_play_services/
extras;google;instantapps | 1.3.0 | Instant Apps Development SDK, rev 1.3 | extras/google/instantapps/
extras;google;m2repository | 58.0.0 | Google Repository, rev 58 | extras/google/m2repository/
extras;google;market_apk_expansion | 1.0.0 | Google Play APK Expansion library | extras/google/market_apk_expansion/
extras;google;market_licensing | 1.0.0 | Google Play Licensing Library | extras/google/market_licensing/
extras;google;play_billing | 5.0.0 | Google Play Billing Library, rev 5 | extras/google/play_billing/
extras;google;webdriver | 2.0.0 | Google Web Driver, rev 2 | extras/google/webdriver/
extras;intel;Hardware_Accelerated_Execution_Manager | 7.2.0 | Intel x86 Emulator Accelerator (HAXM installer) | extras/intel/Hardware_Accelerated_Execution_Manager/
ndk-bundle | 17.1.4828580 | NDK | ndk-bundle/
patcher;v4 | 1 | SDK Patch Applier v4 | patcher/v4/
platform-tools | 28.0.0 | Android SDK Platform-Tools | platform-tools/
platforms;android-17 | 3 | Android SDK Platform 17, rev 3 | platforms/android-17/
platforms;android-19 | 4 | Android SDK Platform 19, rev 4 | platforms/android-19/
platforms;android-20 | 2 | Android SDK Platform 20, rev 2 | platforms/android-20/
platforms;android-21 | 2 | Android SDK Platform 21, rev 2 | platforms/android-21/
platforms;android-22 | 2 | Android SDK Platform 22, rev 2 | platforms/android-22/
platforms;android-23 | 3 | Android SDK Platform 23, rev 3 | platforms/android-23/
platforms;android-24 | 2 | Android SDK Platform 24, rev 2 | platforms/android-24/
platforms;android-25 | 3 | Android SDK Platform 25, rev 3 | platforms/android-25/
platforms;android-26 | 2 | Android SDK Platform 26, rev 2 | platforms/android-26/
platforms;android-27 | 3 | Android SDK Platform 27, rev 3 | platforms/android-27/
platforms;android-28 | 4 | Android SDK Platform 28, rev 4 | platforms/android-28/
platforms;android-N | 3 | Android SDK Platform N, rev 3 | platforms/android-N/
platforms;android-P | 3 | Android SDK Platform P, rev 3 | platforms/android-P/
sources;android-23 | 1 | Sources for Android 23 | sources/android-23/
system-images;android-28;google_apis;x86 | 4 | Google APIs Intel x86 Atom System Image | system-images/android-28/google_apis/x86/
tools | 26.1.1 | Android SDK Tools | tools/